logo
  • 教程列表
  • SO官方文檔
  • 設定 React 環境
    • 簡單的反應元件
    • 安裝所有依賴項
    • 配置 webpack
    • 配置 babel
    • 要使用的 HTML 檔案反應元件
    • 透明並繫結你的元件
  1. StackOverflow 文件
  2. React 教程
  3. 設定 React 環境
  4. 要使用的 HTML 檔案反應元件

要使用的 HTML 檔案反應元件

Created: November-22, 2018

在專案目錄的根目錄中設定一個簡單的 html 檔案

檔名 :index.html

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title></title>
  </head>
  <body>
    <div id="App"></div>
    <script src="build/bundle.js" charset="utf-8"></script>
  </body>
</html>
  • 透明並繫結你的元件
  • 配置 babel

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 關於本站
  • 免責聲明