for example, I now have a Link tag on page A pointing to page A. I click on the A tag to achieve a refresh effect, but now there is no response, and it is useless to set replace= {true}. What do I need to do.
for example, I now have a Link tag on page A pointing to page A. I click on the A tag to achieve a refresh effect, but now there is no response, and it is useless to set replace= {true}. What do I need to do.
send a query or something. Repull data when a query change is detected in componentWillReceiveProps
in the component, or add a key, to the component and update the key when you click Link
<a onClick={()=>history.go(0)}>Go to a page</a>
class App extends Component { render() { console.log( render in App ); return ( <div> <Switch> <Route path=" hot" component={hot} > <...