- 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.
推薦閱讀
- Learning Spring 5.0
- Python自動化運維快速入門
- Visual C
- C++ 從入門到項目實踐(超值版)
- Learning OpenCV 3 Computer Vision with Python(Second Edition)
- UVM實戰
- NoSQL數據庫原理
- QGIS Python Programming Cookbook(Second Edition)
- Odoo 10 Implementation Cookbook
- Essential C++(中文版)
- Webpack實戰:入門、進階與調優(第2版)
- Android Studio開發實戰:從零基礎到App上線 (移動開發叢書)
- SAP HANA Cookbook
- Python從入門到項目實踐(超值版)
- C#從入門到精通(第5版)