- 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.
推薦閱讀
- Spring 5.0 By Example
- Java高并發(fā)核心編程(卷2):多線程、鎖、JMM、JUC、高并發(fā)設(shè)計模式
- Mastering Ember.js
- Windows系統(tǒng)管理與服務(wù)配置
- C#完全自學(xué)教程
- 青少年軟件編程基礎(chǔ)與實戰(zhàn)(圖形化編程三級)
- HTML5 Mobile Development Cookbook
- 實戰(zhàn)Java程序設(shè)計
- Android 7編程入門經(jīng)典:使用Android Studio 2(第4版)
- oreilly精品圖書:軟件開發(fā)者路線圖叢書(共8冊)
- INSTANT Weka How-to
- Java:Data Science Made Easy
- Unreal Engine 4 Shaders and Effects Cookbook
- Java程序設(shè)計入門
- Raspberry Pi Robotic Blueprints