diff --git a/CHANGELOG.md b/CHANGELOG.md index 47adf77..6957a6b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ # Changelog ## Unreleased +- Use react entities as self imported +([#56](https://github.com/fs/react-base/pull/56)) ## 1.0.0 - 2016-09-15 - Upgrade dependencies diff --git a/app/components/about/index.jsx b/app/components/about/index.jsx index be29dff..339ca94 100644 --- a/app/components/about/index.jsx +++ b/app/components/about/index.jsx @@ -1,9 +1,9 @@ -import React from 'react'; +import React, { Component } from 'react'; import { Link } from 'react-router'; import { Grid } from 'react-bootstrap'; import { paths } from 'helpers/routes'; -export default class About extends React.Component { +export default class About extends Component { id = 'test_id' render() { diff --git a/app/components/application/index.jsx b/app/components/application/index.jsx index 6f7d416..bbf39ef 100644 --- a/app/components/application/index.jsx +++ b/app/components/application/index.jsx @@ -1,10 +1,10 @@ -import React from 'react'; +import React, { Component } from 'react'; import Header from 'components/header'; import Modals from 'components/modals'; import Footer from 'components/footer'; import styles from './styles'; -export default class Application extends React.Component { +export default class Application extends Component { render() { return (
diff --git a/app/components/article/index.jsx b/app/components/article/index.jsx index aaf7841..81fe835 100644 --- a/app/components/article/index.jsx +++ b/app/components/article/index.jsx @@ -1,9 +1,9 @@ -import React from 'react'; +import React, { Component, PropTypes } from 'react'; -export default class Article extends React.Component { +export default class Article extends Component { static propTypes = { - params: React.PropTypes.shape({ - id: React.PropTypes.string + params: PropTypes.shape({ + id: PropTypes.string }) } diff --git a/app/components/footer/index.jsx b/app/components/footer/index.jsx index 44ef37e..06c3305 100644 --- a/app/components/footer/index.jsx +++ b/app/components/footer/index.jsx @@ -1,7 +1,7 @@ -import React from 'react'; +import React, { Component } from 'react'; import styles from './styles'; -export default class Footer extends React.Component { +export default class Footer extends Component { render() { return (