update the name state in react js code example Example: reading state react function Example(props) { // You can use Hooks here! return <div />; }