D
D
Dmitr662020-06-12 17:34:37
React
Dmitr66, 2020-06-12 17:34:37

How to wrap content in a component?

Hello, such a question. How can I create a "container component". That is, something like

<Component>
    Hello world
</Component>


Now it only works if you pass it as Is there an option to do it the way I described above?
<Component text={'Hello world'} />

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2020-06-12
@Dmitr66

children

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question