From f575f2b4ca238937aed445d535ddf30374ec533e Mon Sep 17 00:00:00 2001 From: vrde Date: Wed, 20 May 2015 12:00:16 +0200 Subject: [PATCH] Subclass React in the proper way --- js/components/ascribe_app.js | 4 ++-- js/components/header.js | 0 js/components/table.js | 4 +--- 3 files changed, 3 insertions(+), 5 deletions(-) create mode 100644 js/components/header.js diff --git a/js/components/ascribe_app.js b/js/components/ascribe_app.js index ead715f9..a1f84157 100644 --- a/js/components/ascribe_app.js +++ b/js/components/ascribe_app.js @@ -6,7 +6,7 @@ let Link = Router.Link; let RouteHandler = Router.RouteHandler; -class AscribeApp extends React.Component { +let AscribeApp = React.createClass({ render() { return (
@@ -18,6 +18,6 @@ class AscribeApp extends React.Component {
); } -}; +}); export default AscribeApp; diff --git a/js/components/header.js b/js/components/header.js new file mode 100644 index 00000000..e69de29b diff --git a/js/components/table.js b/js/components/table.js index cbfaf308..235f96ce 100644 --- a/js/components/table.js +++ b/js/components/table.js @@ -13,11 +13,9 @@ let Table = React.createClass({ ); })} - - } ); } }); -export default Table; \ No newline at end of file +export default Table;