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

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.

主站蜘蛛池模板: 治县。| 广宁县| 青田县| 宣城市| 庄浪县| 阿鲁科尔沁旗| 安庆市| 碌曲县| 焦作市| 勐海县| 西乌珠穆沁旗| 宜都市| 朝阳区| 哈尔滨市| 宣威市| 塘沽区| 威信县| 克拉玛依市| 昔阳县| 桦甸市| 石狮市| 那坡县| 肇庆市| 晋江市| 新闻| 股票| 绵阳市| 桃源县| 都昌县| 赤峰市| 那坡县| 德保县| 嵊泗县| 娱乐| 花垣县| 侯马市| 忻城县| 珲春市| 和静县| 封丘县| 西青区|