Given this component:
import React from \'react\' import ReactDOM from \'react-dom\' import PropTypes from \'prop-types\' const NewGoalInput = props => {
You don't. The kind of component in your example is called "stateless functional component". It has no state and no lifecycle methods. If you want your component to be stateful you'll have to write it as a class component.