Skip to content

Commit

Permalink
Flux - 17 - Matching Parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenGrider committed Jul 5, 2015
1 parent 6c2e386 commit fcfe2fc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions imgur-client/src/components/topic.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
var React = require('react');

module.exports = React.createClass({
render: function() {
return <div>
I am a topic!
</div>
}
})
3 changes: 2 additions & 1 deletion imgur-client/src/routes.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ var Router = ReactRouter.Router;
var Route = ReactRouter.Route;

var Main = require('./components/main');
var Topic = require('./components/topic');

module.exports = (
<Router history={new HashHistory}>
<Route path="/" component={Main}>

<Route path="topics/:id" component={Topic} />
</Route>
</Router>
)

0 comments on commit fcfe2fc

Please sign in to comment.