Answer the question
In order to leave comments, you need to log in
Organizing React Components?
Good day! I'm interested in the following: let's say there is a main page, a product page and a search page... each page has its own components... in this case, the pages are presented as container components?
Answer the question
In order to leave comments, you need to log in
I make pages functional components that consist of containers (and containers in turn are functional components). This makes it easy to navigate the page and add or remove elements without affecting the rest.
Here is how an example https://gitlab.com/tsepen/star-wars-bb
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question