↧
Answer by Aditya for Not getting any data from getStaticProps
The error you are getting is from the 'gyms' prop. Please make sure if you are using useEffect in the component where you are using Map, the array variable should be in the array. Since you are getting...
View ArticleNot getting any data from getStaticProps
I'm working on a next.js project and I'm trying to get the list of gyms from getStaticProps like this:import { MapContainer, TileLayer, Marker, Popup } from "react-leaflet";import { useState } from...
View Article
More Pages to Explore .....