Skip to content

TWU-C-Tech-Trainee/react-exercise-2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup

1.安装包依赖

npm install

2.启动服务 http://localhost:3001,更新文件会实时加载

npm start

3.启动Json Server http://localhost:3000

yarn server

需要请求数据

练习要求:

- 根据 mockup 合理划分组件,确定组件名
- 确定组件的props,编写组件
- 从API拿数据显示在页面,没有拿到数据之前页面不报错
- 点击"add to cart"按钮,购物车数据+1

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published