![I want to pass props of a component to another and Props need to be dynamic depending on which button is clicked. I have created an illustration to ask question properly. Thanks : I want to pass props of a component to another and Props need to be dynamic depending on which button is clicked. I have created an illustration to ask question properly. Thanks :](https://preview.redd.it/i-want-to-pass-props-of-a-component-to-another-and-props-v0-ynkskwokjhd91.jpg?width=640&crop=smart&auto=webp&s=5d261cfed17eff0409853a49431c5593f8034af1)
I want to pass props of a component to another and Props need to be dynamic depending on which button is clicked. I have created an illustration to ask question properly. Thanks :
![Passing Data From One Component to Another Component in React | by Deepak Kumar | JavaScript in Plain English Passing Data From One Component to Another Component in React | by Deepak Kumar | JavaScript in Plain English](https://miro.medium.com/v2/resize:fit:883/1*Ha4W3ycZeVRrQzQDTJMrmA.png)
Passing Data From One Component to Another Component in React | by Deepak Kumar | JavaScript in Plain English
![How to Pass All Props to a Child Component in React | by Dr. Derek Austin 🥳 | Coding at Dawn | Medium How to Pass All Props to a Child Component in React | by Dr. Derek Austin 🥳 | Coding at Dawn | Medium](https://miro.medium.com/v2/resize:fit:1400/1*TdJiBcxhfoFyrAHeJtal-Q.png)