state management in pure react v2

11/3/2020