react web页面开发
来源:互联网 发布:阿里巴巴 淘宝 便宜 编辑:程序博客网 时间:2024/05/16 09:04
使用 create-react-app 快速构建 React 开发环境
create-react-app 是来自于 Facebook,通过该命令我们无需配置就能快速构建 React 开发环境。
create-react-app 自动创建的项目是基于 Webpack + ES6 。
执行以下命令创建项目:
$ cnpm install -g create-react-app$ create-react-app my-app$ cd my-app/$ npm start
尝试修改 src/App.js 文件代码:
阅读全文