title: How to maintain react component state when goback from router?
body: <p>I have two react components let say A and B. When A is shown on the page, user changes something on that page which cause some states changed inside A. Then user click a button which navigate to B by <code>router.push('/b')</code>. Then user click a back a back button and navigate the page to A which is done by <code>router.goBack()</code>. Now the current URL is A but the previously updated states are gone. How can I maintain the state when user go back to A?</p>