fruit-shop React+TypeScript商店应用

挺有趣的小应用,模拟了一个售卖苹果和橙子的商店。使用了npx create-react-app my-app --template typescript创建的,整体结构清晰。你可以直接克隆项目,运行npm start启动。项目里有详细的用户故事和技术,你快速理解开发过程。测试方面,App.test.tsx也做了不少工作,虽然测试还算基础,但已经覆盖了不少核心功能。整体来说,是一个比较轻量又易于扩展的小项目,挺适合用来练习 React 和 TypeScript 的组合。如果你想快速上手 React + TypeScript 开发,这个项目会给你带来不少灵感。

zip
fruit-shop-main.zip 预估大小:30个文件
folder
fruit-shop-main 文件夹
file
package.json 1021B
file
package-lock.json 657KB
folder
src 文件夹
file
App.css 2KB
folder
data 文件夹
file
svg_components.js 7KB
file
current-offers.ts 181B
file
fruit.constants.ts 152B
folder
component 文件夹
file
shop.css 1KB
file
nav.component.tsx 894B
file
checkout.utils.test.ts 658B
file
checkout.component.tsx 2KB
file
shop.component.tsx 2KB
file
checkout.utils.ts 2KB
file
react-app-env.d.ts 40B
file
reportWebVitals.ts 425B
file
index.tsx 500B
file
App.tsx 939B
file
setupTests.ts 241B
file
App.test.tsx 1KB
file
index.css 44B
file
tsconfig.json 535B
file
.gitignore 329B
folder
readme 文件夹
file
task-description.html 28KB
file
task-description.css 5KB
folder
public 文件夹
file
logo192.png 5KB
file
manifest.json 492B
file
robots.txt 67B
file
index.html 2KB
file
logo512.png 9KB
file
favicon.ico 4KB
file
README.md 2KB
zip 文件大小:207.86KB