Skip to content

Instantly share code, notes, and snippets.

@ThaddeusJiang
Last active August 10, 2018 06:14
Show Gist options
  • Save ThaddeusJiang/8c1d4169a85c6310c3fe4a1e5ce07832 to your computer and use it in GitHub Desktop.
Save ThaddeusJiang/8c1d4169a85c6310c3fe4a1e5ce07832 to your computer and use it in GitHub Desktop.
React 前端项目(front-end)的目录结构

React 前端项目的目录结构

比较了 3 个我比较喜欢的项目

  1. create-react-app
  2. antd-pro
  3. umi-user-dashboard

结论:

  • mock/ mock api
  • public/ web 相关配置文件
    • favicon.ico
    • index.html
    • manifest.json
  • src/
    • assets/ 资源
    • components/
    • routes/
    • utils/
    • router.js 路由入口
    • App.js App 外壳
    • index.js 应用入口
  • tests/ README.md package.json

参考:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment