F
F
faleaksey2019-01-16 12:48:13
React
faleaksey, 2019-01-16 12:48:13

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

1 answer(s)
A
Andrey Okhotnikov, 2019-01-16
@faleaksey

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 question

Ask a Question

731 491 924 answers to any question