Effect Cleanup
(See on the console, in the memory tab, and in the browser/more tools/task manager)To test memory leaks, comment out the cleanup function in useEffect. Also, test with the cleanup function inside useEffect to see great memory working.
Checked and unchecked the checkbox hundred times to see the action described above.
The huge data is being generate 2 millions array on console inside useEffect πΆπ±ππΆπ±ππΆπ±ππΆπ±ππΆπ±ππΆπ±ππΆπ±ππΆπ±ππΆπ±ππΆπ±ππΆπ±ππΆπ±ππΆπ±ππΆπ±ππΆπ±ππΆπ±ππΆπ±ππΆπ±ππΆπ±ππΆπ±ππΆπ±ππΆπ±ππΆπ±ππΆπ±ππΆπ±ππΆπ±ππΆπ±ππΆπ±ππΆπ±ππΆπ±ππΆπ±π

