W
W
Wasya UK2018-11-24 16:33:28
React
Wasya UK, 2018-11-24 16:33:28

How to embed in your component in React?

How can you make such a structure?

return (
  <MyCom><span>Some text</span></MyCom>
)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
Wasya UK, 2018-11-24
@dmc1989

{this.props.children}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question