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

安裝所有依賴項

Created: November-22, 2018

# install react and react-dom
$ npm i react react-dom --save

# install webpack for bundling
$ npm i webpack -g

# install babel for module loading, bundling and transpiling
$ npm i babel-core babel-loader --save

# install babel presets for react and es6
$ npm i babel-preset-react babel-preset-es2015 --save
  • 配置 webpack
  • 簡單的反應元件

Copyright © 2018. All right reserved

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

  • 關於本站
  • 免責聲明