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

  • 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!

主站蜘蛛池模板: 岗巴县| 平武县| 玉山县| 阜宁县| 汶上县| 安溪县| 阳信县| 基隆市| 承德市| 霸州市| 从化市| 图们市| 漳平市| 皋兰县| 大丰市| 酒泉市| 阿瓦提县| 宣威市| 新干县| 西乡县| 樟树市| 江川县| 长治市| 保定市| 周至县| 辽宁省| 罗源县| 长乐市| 乐业县| 额敏县| 金寨县| 黔江区| 崇仁县| 遵义市| 雷波县| 界首市| 滁州市| 六枝特区| 噶尔县| 徐闻县| 盐亭县|