Skip to content

Commit 9e1834a

Browse files
committed
Cleanup examples
1 parent 4fc70f1 commit 9e1834a

File tree

9 files changed

+15
-15
lines changed

9 files changed

+15
-15
lines changed

examples/counter/components/Counter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import React, { PropTypes } from 'react';
1+
import { Component, PropTypes } from 'react';
22

3-
export default class Counter {
3+
export default class Counter extends Component {
44
static propTypes = {
55
increment: PropTypes.func.isRequired,
66
incrementIfOdd: PropTypes.func.isRequired,

examples/counter/containers/App.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import React from 'react';
1+
import { Component } from 'react';
22
import CounterApp from './CounterApp';
33
import { createRedux } from 'redux';
44
import { Provider } from 'redux/react';
55
import * as stores from '../stores';
66

77
const redux = createRedux(stores);
88

9-
export default class App {
9+
export default class App extends Component {
1010
render() {
1111
return (
1212
<Provider redux={redux}>

examples/counter/containers/CounterApp.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React from 'react';
1+
import { Component } from 'react';
22
import { bindActionCreators } from 'redux';
33
import { connect } from 'redux/react';
44
import Counter from '../components/Counter';
@@ -7,7 +7,7 @@ import * as CounterActions from '../actions/CounterActions';
77
@connect(state => ({
88
counter: state.counter
99
}))
10-
export default class CounterApp {
10+
export default class CounterApp extends Component {
1111
render() {
1212
const { counter, dispatch } = this.props;
1313
return (

examples/todomvc/components/Footer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { PropTypes } from 'react';
1+
import { PropTypes, Components } from 'react';
22
import classnames from 'classnames';
33
import { SHOW_ALL, SHOW_MARKED, SHOW_UNMARKED } from '../constants/TodoFilters';
44

@@ -8,7 +8,7 @@ const FILTER_TITLES = {
88
[SHOW_MARKED]: 'Completed'
99
};
1010

11-
export default class Footer {
11+
export default class Footer extends Component {
1212
static propTypes = {
1313
markedCount: PropTypes.number.isRequired,
1414
unmarkedCount: PropTypes.number.isRequired,

examples/todomvc/components/Header.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import React, { PropTypes } from 'react';
1+
import { PropTypes, Component } from 'react';
22
import TodoTextInput from './TodoTextInput';
33

4-
export default class Header {
4+
export default class Header extends Component {
55
static propTypes = {
66
addTodo: PropTypes.func.isRequired
77
};

examples/todomvc/components/MainSection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { Component, PropTypes } from 'react';
1+
import { Component, PropTypes } from 'react';
22
import TodoItem from './TodoItem';
33
import Footer from './Footer';
44
import { SHOW_ALL, SHOW_MARKED, SHOW_UNMARKED } from '../constants/TodoFilters';

examples/todomvc/components/TodoItem.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { Component, PropTypes } from 'react';
1+
import { Component, PropTypes } from 'react';
22
import classnames from 'classnames';
33
import TodoTextInput from './TodoTextInput';
44

examples/todomvc/components/TodoTextInput.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { Component, PropTypes } from 'react';
1+
import { Component, PropTypes } from 'react';
22
import classnames from 'classnames';
33

44
export default class TodoTextInput extends Component {

examples/todomvc/containers/App.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import React from 'react';
1+
import { Component } from 'react';
22
import TodoApp from './TodoApp';
33
import { createRedux } from 'redux';
44
import { Provider } from 'redux/react';
55
import * as stores from '../stores';
66

77
const redux = createRedux(stores);
88

9-
export default class App {
9+
export default class App extends Component {
1010
render() {
1111
return (
1212
<Provider redux={redux}>

0 commit comments

Comments
 (0)