state management in pure react

1 2 3 4