Answer the question
In order to leave comments, you need to log in
How to get access to the child's props?
I found a way out, but it seems to me a bad approach.
Are there others please tell me?
I pass small components to my component, and I pass props to these small ones.
import {Title, Container} from 'SDSlider'
<Component>
<Title caption="Маша">16</Title>
<Title caption="Коля">22</Title>
</Container>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question