TIL - under the hood RR uses React.createElement
for any inline functions passed to <Route component={props => ...} />
. If you don't want your component to fully remount, use <Route render={props => ... } />
instead.
Created
May 5, 2020 15:58
-
-
Save mergebandit/9de310b00cf45aad898835f9ad5de41c to your computer and use it in GitHub Desktop.
TIL-Lab49/React-Router
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment