![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 :
![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 : r/react 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 : r/react](https://preview.redd.it/i-want-to-pass-props-of-a-component-to-another-and-props-v0-ynkskwokjhd91.jpg?auto=webp&s=e6d6b0d6fd4f1fc2c08c121d83301a3390d5e10f)
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 : r/react
![Passing props to props.children using React.cloneElement and render prop pattern | by Justyna Zet | Medium Passing props to props.children using React.cloneElement and render prop pattern | by Justyna Zet | Medium](https://miro.medium.com/v2/resize:fit:1400/1*tz1z-DTVZouYWUe-gTKiiw.gif)