myFunction = () => { this.props.updateItem(this.state) }
this.setState({pencil:!this.state.pencil}, myFunction)