Updating component state in React

How to update class component state from an input field