Ramsoft interview question

When would you use React hooks?