React on page load hook

type Listener = (state: boolean, data: any) => void. I am using hooks. Hooks are a new addition in React 16.Hooks let you use different React features from your components.
focus(); In the example above, the useRef hook is used to create a reference to the input element, and the useEffect .To add a