content: import PureComponent from '../components/purecomponent.react';
  import React from 'react';
  import classnames from 'classnames';
  import immutable from 'immutable';
  import {deleteTodo} from './actions';
  
  export default class TodoItem extends PureComponent {
  
    render() {
      const todo = this.props.todo;
  
      return (
        <li className={classnames({editing: false})}>
          <label>{todo.title}</label>
          <button onClick={() => deleteTodo(todo)}>x</button>
        </li>
      );
    }
  
  }
  
  TodoItem.propTypes = {
    todo: React.PropTypes.instanceOf(immutable.Record)
  };
  