import React, { PropTypes, Component } from 'react'; import TodoTextInput from './TodoTextInput'; class Header extends Component { handleSave(text) { if (text.length !== 0) { this.props.addTodo(text); } } render() { const { path } = this.props; return (

{path}

); } } Header.propTypes = { addTodo: PropTypes.func.isRequired, }; export default Header;