Skip to content

Commit

Permalink
Use ES6 module syntax in React components
Browse files Browse the repository at this point in the history
  • Loading branch information
koistya committed Feb 27, 2015
1 parent 2fef889 commit 999dbac
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 19 deletions.
4 changes: 1 addition & 3 deletions src/components/App/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import Navbar from '../Navbar';
import ContentPage from '../ContentPage';
import NotFoundPage from '../NotFoundPage';

var Application = React.createClass({
export default React.createClass({

mixins: [NavigationMixin],

Expand Down Expand Up @@ -72,5 +72,3 @@ var Application = React.createClass({
}

});

module.exports = Application;
4 changes: 1 addition & 3 deletions src/components/ContentPage/ContentPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

import React from 'react';

var ContentPage = React.createClass({
export default React.createClass({

propTypes: {
body: React.PropTypes.string.isRequired
Expand All @@ -26,5 +26,3 @@ var ContentPage = React.createClass({
}

});

module.exports = ContentPage;
4 changes: 1 addition & 3 deletions src/components/HomePage/HomePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

import React from 'react';

var HomePage = React.createClass({
export default React.createClass({

propTypes: {
body: React.PropTypes.string.isRequired
Expand All @@ -24,5 +24,3 @@ var HomePage = React.createClass({
}

});

module.exports = HomePage;
4 changes: 1 addition & 3 deletions src/components/Navbar/Navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

import React from 'react';

var Navbar = React.createClass({
export default React.createClass({

render() {
return (
Expand All @@ -28,5 +28,3 @@ var Navbar = React.createClass({
}

});

module.exports = Navbar;
4 changes: 1 addition & 3 deletions src/components/NotFoundPage/NotFoundPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

import React from 'react';

var NotFoundPage = React.createClass({
export default React.createClass({

render() {
return (
Expand All @@ -26,5 +26,3 @@ var NotFoundPage = React.createClass({
}

});

module.exports = NotFoundPage;
5 changes: 1 addition & 4 deletions src/components/TextBox/TextBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import './TextBox.less';

import React from 'react';

var TextBox = React.createClass({
export default React.createClass({

propTypes: {
maxLines: React.PropTypes.number
Expand All @@ -37,6 +37,3 @@ var TextBox = React.createClass({
}

});

module.exports = TextBox;

0 comments on commit 999dbac

Please sign in to comment.