Answer the question
In order to leave comments, you need to log in
What is the best file structure for React?
Hello everyone
When we install react using create-react-app
, we get a ready-made hierarchy. Is it worth sticking with? If so, where is the best place to store folders img
and css
? On the same level with public
and src
?
Answer the question
In order to leave comments, you need to log in
you will redo a lot anyway and more than once
I store something in public, I store
many css next to the component in the folder, it all depends on the task
I store at the Public level. Created there css img etc. and I keep. But no one forbids you to put src.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question