Skip to content

Commit fcfe2fc

Browse files
committed
Flux - 17 - Matching Parameters
1 parent 6c2e386 commit fcfe2fc

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

imgur-client/src/components/topic.jsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
var React = require('react');
2+
3+
module.exports = React.createClass({
4+
render: function() {
5+
return <div>
6+
I am a topic!
7+
</div>
8+
}
9+
})

imgur-client/src/routes.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ var Router = ReactRouter.Router;
55
var Route = ReactRouter.Route;
66

77
var Main = require('./components/main');
8+
var Topic = require('./components/topic');
89

910
module.exports = (
1011
<Router history={new HashHistory}>
1112
<Route path="/" component={Main}>
12-
13+
<Route path="topics/:id" component={Topic} />
1314
</Route>
1415
</Router>
1516
)

0 commit comments

Comments
 (0)