I was assigned by my lecturer to add city search to my application using React(Redux) using Leaflet (OpenStreetMap) can anyone help me to solve this problem? and what are the dependencies needed?
Here My Code
import React from 'react'
import {MapContainer, TileLayer} from 'react-leaflet'
import {IoLogoDropbox} from 'react-icons/io5'
import 'leaflet/dist/leaflet.css'
function FormDashboardMap() {
return (
<div>
<h1 className="title"><IoLogoDropbox/> Map</h1>
<div className="card has-shadow">
<div className="card-content">
<div className="content">
<MapContainer style={{ height: "450px", width: "100%" }} center={[51.505, -0.09]} zoom={19}>
<TileLayer
attribution='© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
/>
</MapContainer>
</div>
</div>
</div>
</div>
)
}
export default FormDashboardMap
what to add to add city search feature to my code?