You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Routes can be nested, `this.props.children` will contain the element
123
-
created from the child route component. Please refer to the
124
-
[overview][overview] since this is a very critical part of the router's
125
-
design.
132
+
#### `children`
126
133
127
-
### `onEnter(nextState, transition)`
134
+
Routes can be nested, `this.props.children` will contain the element created from the child route component. Please refer to the [Route Configuration][RouteConfiguration.md] since this is a very critical part of the router's design.
128
135
129
-
Called when a route is about to be entered. It provides the next router
130
-
state and the [transition][Transition] instance for cancelling/redirecting.
136
+
#### `onEnter(nextState, redirectTo)`
131
137
132
-
### `onLeave(nextState, transition)`
138
+
Called when a route is about to be entered. It provides the next router state and a function to redirect to another path.
133
139
134
-
Called when a route is about to be exited. It provides the next router
135
-
state and the [transition][Transition] instance for cancelling/redirecting.
0 commit comments