Created
November 8, 2014 11:10
-
-
Save simenbrekken/5f74ed9d8c2c33060394 to your computer and use it in GitHub Desktop.
Empty route handler
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var React = require('react') | |
| var Brands = React.createClass({ | |
| render: function() { | |
| var activeRouteHandler = this.props.activeRouteHandler | |
| return ( | |
| <main className="brands-section"> | |
| <activeRouteHandler /> | |
| </main> | |
| ) | |
| } | |
| }) | |
| module.exports = Brands |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <Route name="brands" path="brands" handler={Brands}> | |
| <DefaultRoute handler={BrandIndex} /> | |
| <Route name="brand-product" path=":brand/products/:product/:variant" handler={Product} /> | |
| <Route name="brand" path=":brand" handler={Brand} /> | |
| </Route> |
ryanflorence
commented
Nov 8, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment