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

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!

主站蜘蛛池模板: 申扎县| 扎鲁特旗| 揭西县| 铜鼓县| 大渡口区| 尼木县| 怀来县| 浑源县| 祥云县| 邹城市| 会昌县| 塔河县| 扎兰屯市| 错那县| 三穗县| 涟源市| 宜兴市| 大厂| 阳西县| 张家港市| 裕民县| 河间市| 平舆县| 清河县| 唐山市| 涟源市| 长宁县| 关岭| 西丰县| 漳平市| 宜黄县| 沾化县| 蒙山县| 麻栗坡县| 察隅县| 隆林| 汉中市| 赫章县| 夏河县| 龙井市| 东山县|