Answer the question
In order to leave comments, you need to log in
How to do asynchronous page replacement in react js?
Hello, I'm starting to learn react js. And here I have a problem. I have a page with 2 buttons. I need when a button is clicked, the page changes to another asynchronously. That is, the buttons should disappear. What to use? What to read? Sorry if that, I'm just a beginner)
Answer the question
In order to leave comments, you need to log in
Read about props, react-router and hooks, in particular useState and useEffect.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question