
上QQ阅读APP看书,第一时间看更新
Meteor with React
Starting from the client, let's create our simple app:
- Delete all the content of the client folder.
- Create the index.html file with the following content:
<head>
<title>Timer</title>
</head>
<body>
<div id="root"></div>
</body>
- Meteor will take care of the missing HTML tags. It will compile it as a template rather than serve it as an HTML document.
- 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.