- Build Applications with Meteor
- Dobrin Ganev
- 100字
- 2021-07-09 19:48:54
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.
推薦閱讀
- Mastering JavaScript Functional Programming
- Python for Secret Agents:Volume II
- 游戲程序設(shè)計教程
- 劍指Java:核心原理與應(yīng)用實(shí)踐
- Linux:Embedded Development
- C語言程序設(shè)計
- C專家編程
- Learning Nessus for Penetration Testing
- 邊玩邊學(xué)Scratch3.0少兒趣味編程
- 視窗軟件設(shè)計和開發(fā)自動化:可視化D++語言
- Java從入門到精通(視頻實(shí)戰(zhàn)版)
- Java語言程序設(shè)計實(shí)用教程(第2版)
- Enterprise Application Architecture with .NET Core
- Moodle 3.x Developer's Guide
- Python機(jī)器學(xué)習(xí)