Spaces:
Runtime error
Runtime error
File size: 420 Bytes
fbf7aed 6d4c624 fbf7aed 6d4c624 fbf7aed 6d4c624 fbf7aed 6d4c624 fbf7aed |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
// import logo from './logo.svg';
import './App.css';
import Map from './components/Map';
// import { MapContainer, TileLayer, useMapEvents } from 'react-leaflet';
function App() {
const handleMapClick = (lat, lng) => {
console.log(`Map clicked at latitude: ${lat}, longitude: ${lng}`);
}
return (
<div className="App">
<Map onMapClick={handleMapClick}/>
</div>
);
}
export default App;
|