react 开发入门

版权声明:转载需注明出处 https://blog.csdn.net/suoxd123/article/details/84977536


环境配置

安装react

  直接通过命令安装:npm install -g create-react-app
  

创建本地服务器

  直接通过命令安装:create-react-app first-demo(first-demo为app名称)
  

启动运行

  直接通过命令安装:
   cd first-demo
   npm start
  

修改测试

  按照提示修改程序app.js文件,修改后页面会自动刷新
  

语法解释

猜你喜欢

转载自blog.csdn.net/suoxd123/article/details/84977536