1
0
mirror of https://github.com/ascribe/onion.git synced 2025-01-03 10:25:08 +01:00

Subclass React in the proper way

This commit is contained in:
vrde 2015-05-20 12:00:16 +02:00
parent ba71bd5788
commit f575f2b4ca
3 changed files with 3 additions and 5 deletions

View File

@ -6,7 +6,7 @@ let Link = Router.Link;
let RouteHandler = Router.RouteHandler; let RouteHandler = Router.RouteHandler;
class AscribeApp extends React.Component { let AscribeApp = React.createClass({
render() { render() {
return ( return (
<div> <div>
@ -18,6 +18,6 @@ class AscribeApp extends React.Component {
</div> </div>
); );
} }
}; });
export default AscribeApp; export default AscribeApp;

0
js/components/header.js Normal file
View File

View File

@ -13,11 +13,9 @@ let Table = React.createClass({
</li> </li>
); );
})} })}
}
</ul> </ul>
); );
} }
}); });
export default Table; export default Table;