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

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.

主站蜘蛛池模板: 新闻| 高台县| 黄山市| 富宁县| 阳高县| 萝北县| 紫阳县| 景东| 攀枝花市| 富源县| 新乡市| 盐城市| 时尚| 泸州市| 镶黄旗| 鸡泽县| 屏南县| 平凉市| 定兴县| 石台县| 榕江县| 青神县| 林甸县| 饶河县| 茌平县| 库车县| 睢宁县| 察隅县| 泰州市| 金坛市| 翁牛特旗| 永安市| 克东县| 丰台区| 历史| 马边| 色达县| 镇康县| 比如县| 衡南县| 涪陵区|