[Metronicc] [REACT] how to change create app Modal Depends on Current Page
Hi,
i'm using Metronic default Theme demo1
every Page containte Fiter Button and Creact React APP Modal with 5 steps
how can i Change Create Button Behaviour Depends on Current Page ?
Replies (3)
Hi Fathey Abdelslam,
This quite depends on the complexity of your components and your component logic. I think one of the easiest ways to implement it is by rendering your buttons conditionally.
{condition && <button>Create React App 1 Button<button>}
{!condition && <button>Create React App 2 Button<button>}
Regards,
Lauris Stepanovs,
Keenthemes Support Team
thanks
i've solved this Problem by using Native react Context api
Hi Fathey Abdelslam,
Glad to hear that. All the best with your project!
Please don't hesitate to reach out if you need anything more from us.
Regards,
Lauris Stepanovs,
Keenthemes Support Team
Your Support Matters!
We will highly appreciate your Metronic Review on Themeforest.
Please go to Themeforest Downloads page, select Metronic & leave your feedback.