Kake Interview Question

How does state work in React?