state management in pure react v2

4 5 6 7 8