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

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.

主站蜘蛛池模板: 赞皇县| 即墨市| 宝山区| 逊克县| 方山县| 乌恰县| 麻江县| 鄂托克旗| 尼勒克县| 济阳县| 静海县| 金沙县| 云霄县| 抚远县| 青海省| 佛山市| 微博| 建昌县| 葵青区| 江西省| 仙游县| 阆中市| 咸阳市| 汉川市| 宜宾县| 师宗县| 华宁县| 景洪市| 高要市| 新营市| 辽阳县| 二连浩特市| 遵义市| 牡丹江市| 陇南市| 阿拉善右旗| 晋宁县| 南木林县| 五寨县| 临朐县| 漳浦县|