Answer the question
In order to leave comments, you need to log in
How to create a "wrapper" component in react?
Good health!
Tell me, conditionally, there are 100 pages with the same styles, how to create something like a wrapper so as not to copy it a hundred times? Something from the series:
<Wrapped>
<Content />
<Wrapped />
Answer the question
In order to leave comments, you need to log in
Do 100 pages with the same styles have the same components? If so, create H1, H2, Paragraph, etc. components and assemble the page from them.
Assemble one Page component and loop your [pages] array through it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question