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 !!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
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 !!