Managing user state

State management with Provider and Consumer