...

/

Structuring your React app

Structuring your React app

We’re going to structure our app into components. Deciding what to put into one component and what to put into another is one of the hardest problems in engineering.

Entire books have been written on the topic, but here’s a rule of thumb that I like to use: if you have to use the word “and” to describe what your component does, then it should become two components.

Once you have those two components, you can either make them child components of a bigger component, or you can make them separate. The choice depends on their re-usability and often mimics your design structure.

For example, our tech salary visualization is going to use 1 ...

Access this course and 1400+ top-rated courses and projects.