Cov txheej txheem:

Yuav ua li cas rau nruab react JS?
Yuav ua li cas rau nruab react JS?

Video: Yuav ua li cas rau nruab react JS?

Video: Yuav ua li cas rau nruab react JS?
Video: 1 tsug 13 hnub _part#2_phees lauj fullmusic MV 2022-2023 2024, Kaum ib hlis
Anonim

Txhim kho ReactJS siv webpack thiab babel

  1. Kauj ruam 1 - Tsim lub hauv paus nplaub tshev.
  2. Kauj ruam 2 - nruab React thiab react dom.
  3. Kauj ruam 3 - Nruab webpack.
  4. Kauj ruam 4 - Nruab babel.
  5. Kauj ruam 5 - Tsim cov ntaub ntawv.
  6. Kauj ruam 6 - Teeb Compiler, Server thiab Loaders.
  7. Kauj Ruam 7 - Index.
  8. Kauj ruam 8 - App.

Xav txog qhov no, yuav ua li cas teeb tsa ua haujlwm hauv Windows?

Nruab ReactJS Windows

  1. git --version. Ua raws li:
  2. node --version. Ua raws li:
  3. npm --version. Txhua tus yuav tsum muab cov versions nruab rau ntawm Windows.
  4. npm nruab -g tsim-react-app. Yog tias ua tiav, koj yuav tsum tuaj yeem tau txais version:
  5. tsim-react-app --version.
  6. tsim-react-app
  7. cd npm.
  8. Muab ua tiav!

Tsis tas li ntawd, yuav ua li cas nruab react JS NPM? Kauj Ruam 1: - Kev teeb tsa ib puag ncig

  1. Tsim ib daim nplaub tshev ntawm desktop kom koj tuaj yeem nrhiav tau yooj yim.
  2. Khiav cov lus txib nram qab no los tsim cov ntaub ntawv package.json ….. DesktopFolderName>npm init.
  3. Ntaus "npm install react --save" hauv kev hais kom ua. --txuag yuav hloov tshiab pob.
  4. Ntaus "npm nruab react-dom --save" hauv kev hais kom ua.

Ntawm no, yuav ua li cas nruab react JS kauj ruam yog kauj ruam?

Txhim kho ReactJS siv webpack thiab babel

  1. Kauj ruam 1 - Tsim lub hauv paus nplaub tshev.
  2. Kauj ruam 2 - nruab React thiab react dom.
  3. Kauj ruam 3 - Nruab webpack.
  4. Kauj ruam 4 - Nruab babel.
  5. Kauj ruam 5 - Tsim cov ntaub ntawv.
  6. Kauj ruam 6 - Teeb Compiler, Server thiab Loaders.
  7. Kauj Ruam 7 - Index.
  8. Kauj ruam 8 - App.

Koj teeb tsa qhov project react li cas?

Kev teeb tsa React Project

  1. Kauj ruam 1: Nruab Daim Ntawv Thov Qauv. Clone lub es6-tutorial-react repository: git clone
  2. Kauj ruam 2: Teeb Babel thiab Webpack. Qhib cov lus hais kom sai, thiab taw qhia (cd) mus rau es6-tutorial-react directory.
  3. Kauj ruam 3: Tsim thiab khiav.

Pom zoo: