Skip to content

fancn21th/1-007-React-Mobile-H5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Mobile H5 Web App Start Kit

Components

create react app

react router

react query

Convention

文件规范

  • Route

    • example

      • /foo
    • rule

      • kebab-case-example
        • kebab case
        • lowercase
  • Page

    • example

      ├── FooPage
      │ └── index.js
    • rule

      • CamelCase
      • first letter uppercase
      • Page as suffix
      • index.js as page component itself
  • Component

    • example

      ├── FooPage
      │ ├── components
      │ │ └── Bar
      │ │   └── index.js
    • rule

      • CamelCase
      • first letter uppercase
      • index.js as component itself
  • Hook

    • example

      useFoo
          ├── index.js
          └── utils
              ├── api.js
              ├── format.js
              └── initialData.js
    • rule

      • CamelCase
      • use as prefix
      • index.js as hook itself
      • utils folder
        • api, format, initialData