store valu into state reactjs code example Example: reading state react function Example(props) { // You can use Hooks here! return <div />; }