-1

I am working on a project where we have a subscriptions plans container at the home page of the app.....when we are the at the other route where the user need to buy subscription....so there we provide the button to buy subscription....but what i want is when the user click that button i want to route the user to the specific part where the component of the subscriptions plans is......To make this work what i tried is....i gave the parent component of that area an id of subscriptions....then when the user is at different route and he click that button there i also gave a tag with a href of that id i.e. #subscriptions.....but its not working........and i hope you'll understand what i am trying to say.

1 Answers1

1

This is the button of component of the route /classes....

here if the user havn't bought the subscription i want him to route to home page to buy subscription

enter image description here

This is the area where i want the user to route to. (Not the top of the page like a normal react-router do)