DEV Community

Discussion on: Good Map Usage?

jmcelreavey profile image
John McElreavey Author

Interesting approach, thanks. I probably would have just updated the existing object rather than creating a new array but your way is better with React. Is there any good examples of a case where you would use a Map object?