- 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!
推薦閱讀
- 實戰Java程序設計
- Unity 5.x By Example
- 大學計算機基礎(第2版)(微課版)
- HTML 5與CSS 3權威指南(第3版·上冊)
- 移動增值應用開發技術導論
- 從零開始學Android開發
- PostgreSQL 12 High Availability Cookbook
- Web前端測試與集成:Jasmine/Selenium/Protractor/Jenkins的最佳實踐
- SQL Server 2014 Development Essentials
- Leaflet.js Essentials
- Natural Language Processing with Python Cookbook
- Real-time Web Application Development using Vert.x 2.0
- RabbitMQ Essentials
- 15天學會JavaScript(視頻教學版)
- Getting Started with SpriteKit