AgileEngine interview question

When or why you implement a react custom hook?