We're a place where coders share, stay up-to-date and grow their careers.
I like to keep things simple so I put all my components are in src/components and my pages are in src/pages (suffixed with -Page). All API stuff is in src/api and I also have a src/utils for stuff that doesn't fit anywhere else.
src/components
src/pages
src/api
src/utils
It looks something like this:
src/ api/ auth.js user.js components/ Header.js Header.css pages/ LandingPage.js DashboardPage.js utils/ registerServiceWorker.js
Recommended reading material: hackernoon.com/the-100-correct-way...
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
I like to keep things simple so I put all my components are in
src/components
and my pages are insrc/pages
(suffixed with -Page). All API stuff is insrc/api
and I also have asrc/utils
for stuff that doesn't fit anywhere else.It looks something like this:
Recommended reading material: hackernoon.com/the-100-correct-way...