Zapier Interview Question

How is state managed in react