I have been trying to get react grid layout setup with my project and have been unable to merge two of the examples. Local storage and add/remove widgets
I figured I needed to also store items in LS and have been trying to get it working but with no luck. Currently, items are being stored, and layout is empty (not sure why), but the items are reset on refresh. I'm pretty sure it's because of the .map
in state, but I am unsure how I can fix this.
If anything can help me I would be grateful as I have been stuck on this for awhile.
I have made a sandbox for ease of help