Started doing client-side routing, added some rewriting on the server to support it
This commit is contained in:
parent
eec82a7dd9
commit
0b8e97b215
6 changed files with 54 additions and 9 deletions
|
@ -1,14 +1,14 @@
|
|||
var React = require('react');
|
||||
var RouteHandler = require('react-router').RouteHandler;
|
||||
|
||||
var TabList = require('./TabList.jsx');
|
||||
var Chat = require('./Chat.jsx');
|
||||
|
||||
var App = React.createClass({
|
||||
render: function() {
|
||||
return (
|
||||
<div>
|
||||
<TabList />
|
||||
<Chat />
|
||||
<RouteHandler />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
13
client/src/js/components/Settings.jsx
Normal file
13
client/src/js/components/Settings.jsx
Normal file
|
@ -0,0 +1,13 @@
|
|||
var React = require('react');
|
||||
|
||||
var Settings = React.createClass({
|
||||
render: function() {
|
||||
return (
|
||||
<div>
|
||||
<h1>Settings</h1>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
module.exports = Settings;
|
Loading…
Add table
Add a link
Reference in a new issue