X by 2 Interview Question

What are hooks in react?