Side-drawer
How to send data to side-drawer. I'm using table 'react-table' for showing table. Inside table I have view button. Whenever I click view button I'm able to open side-drawer. But I'm not able to send props to the side drawer. Please tell me how to send props. Without using context.
Please help!
Replies (2)
Experience Dubai in ultimate luxury with a private yacht tour Dubai! Enjoy an exclusive, tailored journey along the city’s breathtaking coastline, with stunning views of landmarks like the Burj Al Arab and Palm Jumeirah. Book your private yacht tour today for an unforgettable experience!
Hi,
Thank you for reaching out to us.
If the variables you want to pass to the drawer component are located in the same file where you instantiate your drawer component, you can pass them through props. The same applies if you instantiate it in any of the child components, and you can do it through prop drilling.
However, if your components tree is more complex, it is recommended to use Context or app state libraries like react-redux or zustand.
Regards,
Lauris Stepanovs,
Keenthemes Support Team