Answer the question
In order to leave comments, you need to log in
How to shutdown a React component?
I have an App component that started another Login component and now I want to terminate the Login component and return to the App. How to do it ?
Answer the question
In order to leave comments, you need to log in
I already wrote to you about routing. See this example .
If you are sure that you do not need routing, then use conditional rendering .
Go to the App, do the necessary work and at the end of the handler or in any other place do history.push('/somewhere')
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question