state management in pure react v2

1 2 3 4 5