example of functional component with useState
…