code: function createRoutesFromReactChildren(children) {
    var routes = [];
  
    React.Children.forEach(children, function (child) {
      if (child = createRouteFromReactElement(child)) routes.push(child);
    });
  
    return routes;
  }
docs: Creates and returns an array of routes created from the given
  ReactChildren, all of which should be one of <Route>, <DefaultRoute>,
  <NotFoundRoute>, or <Redirect>, e.g.:
  
  var { createRoutesFromReactChildren, Route, Redirect } = require('react-router');
  
  var routes = createRoutesFromReactChildren(
  <Route path="/" handler={App}>
  <Route name="user" path="/user/:userId" handler={User}>
  <Route name="task" path="tasks/:taskId" handler={Task}/>
  <Redirect from="todos/:taskId" to="task"/>
  </Route>
  </Route>
  );