We're a place where coders share, stay up-to-date and grow their careers.
hello , how you can pass the state in a props of your component ?
When you use a component that you create you can pass props like arguments, there you can pass the state too like
In you component you can access it like
{this.props.nameOfThePropInTheComponent}
Hope it helps you :D
in fact, I found the answer rather quickly but on the spot I do not remember more .... Thank you for your answer !!
hello , how you can pass the state in a props of your component ?
When you use a component that you create you can pass props like arguments, there you can pass the state too like
In you component you can access it like
{this.props.nameOfThePropInTheComponent}
Hope it helps you :D
in fact, I found the answer rather quickly but on the spot I do not remember more ....
Thank you for your answer !!