- React.js Essentials
- Artemij Fedosejev
- 100字
- 2021-07-16 20:26:53
Creating a web page
If you're starving 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> <div id="react-application"> I am about to learn the essentials of React.js. </div> <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!
推薦閱讀
- Instant Testing with CasperJS
- DBA攻堅(jiān)指南:左手Oracle,右手MySQL
- Python編程自學(xué)手冊(cè)
- Java Web開發(fā)學(xué)習(xí)手冊(cè)
- 深入理解Bootstrap
- Power Up Your PowToon Studio Project
- .NET 4.0面向?qū)ο缶幊搪劊夯A(chǔ)篇
- ADI DSP應(yīng)用技術(shù)集錦
- 名師講壇:Spring實(shí)戰(zhàn)開發(fā)(Redis+SpringDataJPA+SpringMVC+SpringSecurity)
- 量化金融R語言高級(jí)教程
- Haskell Data Analysis Cookbook
- C語言程序設(shè)計(jì)
- Scala編程(第5版)
- App Inventor 2 Essentials
- HTML+CSS+JavaScript網(wǎng)頁制作:從入門到精通(第4版)