S
S
Smuzzzzi2018-10-27 10:07:40
React
Smuzzzzi, 2018-10-27 10:07:40

How to add multiple renders on 1 page?

The bottom line is, there is a profile page, everything works fine.
It has other tabs, such as settings, and so on.
I don't want to create new components.
How to take a subpage from the same component?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anatoly Zharov, 2018-10-27
@SeaBreeze876

a component can have only one render method, you need conditional rendering https://reactjs.org/docs/conditional-rendering.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question