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

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!

主站蜘蛛池模板: 平乐县| 凌源市| 紫阳县| 玉林市| 马鞍山市| 西畴县| 马边| 永春县| 渭南市| 商洛市| 泸水县| 家居| 安平县| 淳安县| 雷山县| 汉源县| 丹寨县| 蒲江县| 元朗区| 司法| 特克斯县| 印江| 赫章县| 桃源县| 寿宁县| 大埔区| 正阳县| 屏东市| 合水县| 望奎县| 大庆市| 洞口县| 荃湾区| 通河县| 鄂尔多斯市| 台湾省| 滨州市| 禄劝| 镇平县| 印江| 西乌珠穆沁旗|