A
A
alexfrolov_xcx2017-10-22 21:02:42
React
alexfrolov_xcx, 2017-10-22 21:02:42

How much should everything be a component when building a React app?

Good day to all :) I'm just starting to understand React and here is such a, probably a little silly, question:
How to properly split into components in HTML? what I mean: initially leave only 1 tag in html and render the whole application there or split it on the page into, for example: id="header", id="content", id="sidebar", etc... where will these components be rendered? how right? Thank you)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
BookerDeWitt, 2017-10-22
@BookerDeWitt

the entire application needs to be rendered into one tag.
The component that you will render into it will contain child components:
id="header", id="content", id="sidebar"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question