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

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!

主站蜘蛛池模板: 阿尔山市| 阳泉市| 兴义市| 万盛区| 公安县| 安国市| 永善县| 七台河市| 堆龙德庆县| 建平县| 苗栗市| 富顺县| 陵川县| 平南县| 崇明县| 大渡口区| 视频| 海晏县| 密山市| 平原县| 中方县| 开远市| 达拉特旗| 南溪县| 吴堡县| 定襄县| 定远县| 石渠县| 太白县| 措美县| 拉孜县| 旺苍县| 丰都县| 申扎县| 天峨县| 永宁县| 宝应县| 宜阳县| 防城港市| 安龙县| 凤凰县|