Checkout how to create organized ReactJS project.
From the last couple of weeks, I was working on front-end Side. I'm using React JS in front-end. As I'm building a project from scratch, I spent some time to find the proper file structure in ReactJS.
React JS file structure is pretty easy. Also, I can say that you don't have to Rome around to find perfect file structure because ReactJS official site provides it. You can follow these patterns in your project: File Structure in ReactJS (official site)
Analysis paralysis
What is Analysis paralysis? Analysis paralysis in simple term means overthinking. In software development, analysis paralysis typically manifests itself through the Waterfall model with exceedingly long phases of project planning, requirements gathering, program design and data modeling, which can create little or no extra value by those steps and risk many revisions -- wiki.
You need to be careful about it. As many software developers face this problem. Even I think I was doing overthinking when I was creating a backend structure(Python Flask Project Structure). It took so much effort.
Sometimes overthinking does not help.
Even official ReactJS site says "don’t spend more than five minutes on choosing a file structure." You can always change after you write some code or when a project grows.
Naming Convention
Regarding naming conventions, ReactJS is unopinionated. There isn't an official guideline or statement about it. You won't find them in the documentation either.
It's a personal (team) preference. If you struggle to enforce one, you could stick to something like Airbnb's mostly reasonable approach to React and JSX.
Front-end language gives much more freedom in architecture compared to Back-end programming languages because back-end application could be run on different platforms like Ubuntu, windows or mac. So, you have to keep in mind about that.
I'm adding a couple of references that are helpful in Front-end architecture.
PS: As long as you're consistent, I would say you're safe.
Keyul Patel is a 23-year-old computing student who enjoys eating out, relaxing and outdoor activities. He is helpful and loveable. He is currently at college studying computing. He is obsessed with programming.