Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Folder structure for React #19

Closed
timroesner opened this issue Feb 6, 2019 · 0 comments
Closed

Folder structure for React #19

timroesner opened this issue Feb 6, 2019 · 0 comments
Assignees
Labels
1 Takes 1h to complete Frontend

Comments

@timroesner
Copy link
Owner

It is good to divide certain files into subfolder, this helps with adhering to a MVC structure and dividing responsibilities between files. The following folders should all be inside "src"

I propose the following folders:

  • assets (icons, images, etc)
  • components (reusable components)
  • containers (larger reusable chunks)
  • models (objects used across the app)
  • pages (top level skeletons)
  • utils (useful functions)
@hungtang2901 hungtang2901 self-assigned this Feb 18, 2019
@timroesner timroesner added the 1 Takes 1h to complete label Feb 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 Takes 1h to complete Frontend
Projects
None yet
Development

No branches or pull requests

2 participants