title: Does React clean used memory for States?
body: <p>Suppose that, I should store a lot of data in component's local states with useState(). Logically React uses memory to store these data. But what does happen when one component unmount?
  Does React clean used memory for old states in unmounting step? or JavaScript keeps all states in memory until I close tab or refresh page?</p>