diff options
Diffstat (limited to 'web/src/vendor/react-router/docs/api/components/NotFoundRoute.md')
-rw-r--r-- | web/src/vendor/react-router/docs/api/components/NotFoundRoute.md | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/web/src/vendor/react-router/docs/api/components/NotFoundRoute.md b/web/src/vendor/react-router/docs/api/components/NotFoundRoute.md deleted file mode 100644 index 366c78b4..00000000 --- a/web/src/vendor/react-router/docs/api/components/NotFoundRoute.md +++ /dev/null @@ -1,36 +0,0 @@ -API: `NotFoundRoute` (component) -=============================== - -When a parent's URL partially matches, but none of the children do, a -`NotFoundRoute` will be matched and its handler rendered at any level of -your route/view hierarchy. - -Props ------ - -See [Route::props][routeProps] - -Example -------- - -```xml -<Routes> - <Route path="/" handler={App}> - <Route name="course" path="course/:courseId" handler={Course}> - <Route name="course-dashboard" path="dashboard" /> - - <!-- ie: `/course/123/foo` --> - <NotFoundRoute handler={CourseRouteNotFound} /> - </Route> - - <!-- ie: `/flkjasdf` --> - <NotFoundRoute handler={NotFound} /> - </Route> -</Routes> -``` - -The last `NotFoundRoute` will render inside the `App`, the first will -rendering inside of `Course`. - - [routeProps]:/docs/api/components/Route.md#props - |