Skip to content

Commit

Permalink
Add doc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mjackson committed Aug 29, 2014
1 parent 79caf99 commit 66030b2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions modules/components/NotFoundRoute.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
var merge = require('react/lib/merge');
var Route = require('./Route');

/**
* A <NotFoundRoute> is a special kind of <Route> that
* renders when the beginning of its parent's path matches
* but none of its siblings do, including any <DefaultRoute>.
* Only one such route may be used at any given level in the
* route hierarchy.
*/
function NotFoundRoute(props) {
return Route(
merge(props, {
Expand Down

0 comments on commit 66030b2

Please sign in to comment.