- React 16 Essentials(Second Edition)
- Artemij Fedosejev Adam Boduch
- 100字
- 2021-07-02 22:25:20
Creating a web page
If you're hungry for some React goodness, then I have great news for you! We're almost there. All that's left to do is to create index.html
with a link to our snapterest.js
script.
Create the index.html
file in the ~/snapterest/build/
directory. Add the following HTML markup to it:
<!doctype html> <html lang="en"> <head> <meta charset="utf-8" /> <meta http-equiv="x-ua-compatible" content="ie=edge, chrome=1" /> <title>Snapterest</title> <link rel="stylesheet" > </head> <body> <p id="react-application"> I am about to learn the essentials of React.js. </p> <script src="./snapterest.js"></script> </body> </html>
Open ~/snapterest/build/index.html
in a web browser. You should see the following text: I am about to learn the essentials of React.js. That's right, we have finished setting up our project, and it's time to get to know React!
推薦閱讀
- 程序員修煉之道:程序設計入門30講
- JavaScript高效圖形編程
- JavaScript:Functional Programming for JavaScript Developers
- Visual C++數字圖像模式識別技術詳解
- Web開發的貴族:ASP.NET 3.5+SQL Server 2008
- 飛槳PaddlePaddle深度學習實戰
- Mastering Docker
- ASP.NET開發寶典
- PostgreSQL Developer's Guide
- 深入實踐C++模板編程
- Tkinter GUI Application Development Blueprints
- 大象:Thinking in UML(第二版)
- Comprehensive Ruby Programming
- Jenkins 2.x Continuous Integration Cookbook(Third Edition)
- Java 開發從入門到精通