item.map line i am facing problem please guide me
function Map({items}) {
return (
<MapContainer center={[52.4797, -1.98269]} zoom={7} scrollWheelZoom={false} className='map'>
<TileLayer
attribution='© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
/>
{items.map((item)=>(
<Pin item={item} key={item.id}/>
))}
</MapContainer>
)
}
I tried to map using map funtion but it’s not working