What I was getting wrong about finding duplicated state in React · PitHub