WebMobi interview question

Store a state in react using React Hooks.