1.快速新建名为hello-world项目的应用命令

npx create-react-app hello-world

2.使用serve来mock数据

①先安装serve        npm i -g serve

②创建文件夹,添加data.json文件,在该文件夹下直接命令serve,会给出一个访问地址,

Local: http://localhost:5000

    On Your Network: http://192.168.1.197:5000

    在浏览器直接输入http://localhost:5000 /data.json即可

最新文章

  1. SQL Server全时区转换
  2. Centos 6.5安装python3.5.1
  3. js实现小数点后保留N位并可以四舍五入——js对float数据的处理
  4. C语言结构体的字节对齐
  5. Jquery时间验证和转换工具
  6. 服务器 : Apache Tomcat - 理解架构层次
  7. spring-boot-starter家族成员简介
  8. 【Shell基础】循环:for、while、until
  9. 为什么浏览器User Agent中都有个mozilla
  10. HTML5新增表单验证
  11. cannot send list of active checks to [ZabbixServerIp]: host [Zabbix server] not found
  12. UVAlive6800The Mountain of Gold?(负环)
  13. Daily Scrum (2015/11/1)
  14. 汇编代码中db,dw,dd的区别
  15. c++第二十天
  16. laravel model relationship
  17. 高性能MySQL--MySQL数据类型介绍和最优数据类型选择
  18. jQuery 判断浏览器
  19. oracle中空值null的判断和转换:NVL的用法
  20. XJOI 3606 最大子矩形面积/LightOJ 1083 Histogram(单调栈/笛卡尔树)

热门文章

  1. 如何做好APP功能测试?
  2. [CF852H]Bob and stages
  3. jquery动态修改带有important的样式方法
  4. LOJ 2719 「NOI2018」冒泡排序——模型转化
  5. The mook jong
  6. cordova打包apk流程
  7. JS 替换
  8. GPIO 的 8 种工作模式
  9. 关于toString()的一些事情
  10. Vue页面跳转动画效果实现