Categories
Development

React and hooks – Getting TypeError: Object(…) is not a function

I’m using Mapbox to try to render various coordinates from a local JSON file. However, I’m receiving the error TypeError: Object(…) is not a function. I’ve looked up some info on what could be causing it (e.g. earlier versions of react won’t work with hooks), but since it’s pretty vague I don’t know how to […]