官术网_书友最值得收藏!

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!

主站蜘蛛池模板: 商城县| 东乌珠穆沁旗| 宝鸡市| 泰安市| 察哈| 平潭县| 隆昌县| 五常市| 朝阳区| 丰城市| 遵义县| 平山县| 沂源县| 阿瓦提县| 江川县| 镇江市| 福贡县| 陵水| 宝清县| 平江县| 许昌市| 三穗县| 北辰区| 长垣县| 商水县| 邛崃市| 荥经县| 富民县| 平舆县| 远安县| 平顶山市| 淮北市| 蕉岭县| 衡东县| 沂南县| 抚松县| 乐安县| 闵行区| 沛县| 肇源县| 威信县|