官术网_书友最值得收藏!

Meteor with React

Starting from the client, let's create our simple app:

  1. Delete all the content of the client folder.
  2. Create the index.html file with the following content:
<head>
<title>Timer</title>
</head>
<body>
<div id="root"></div>
</body>
  1. Meteor will take care of the missing HTML tags. It will compile it as a template rather than serve it as an HTML document.
  2. It will throw an error if you try to add the <!DOCTYPE html> and html> tags:
      While processing files with <cdpcomment data-comment-id="2521" 
data-comment-text="Sounds incomplete. ">">templating-compiler
(for target web.browser):

client/index.html:1: Expected one of: <body>, <head>, <template>.

Since we are using only React, we don't need to have the blaze-html-templates package installed.

主站蜘蛛池模板: 蒙自县| 额济纳旗| 桃江县| 房产| 东丰县| 武陟县| 班戈县| 仁布县| 江阴市| 玉溪市| 盐池县| 黔江区| 陇川县| 阜康市| 阿图什市| 台中市| 昭觉县| 那坡县| 永城市| 阜新市| 阜平县| 灵台县| 汉源县| 庄河市| 林州市| 中牟县| 阿尔山市| 驻马店市| 扬中市| 鹤岗市| 洱源县| 缙云县| 西和县| 咸宁市| 萨嘎县| 剑河县| 仁寿县| 平罗县| 永川市| 左云县| 合山市|