Closed diegottivos closed 2 years ago
I'm calling an onChange but it gives me an error
<input accept=".zip" onChange={importShape} type="file" />
const importShape = async (data) => { const file = data.target.files[0]; const geojson = await shp(file); console.log(geojson); };
Hi! Did you come up with a solution? Im having same problem.. Additional details on how this was accomplished would be appreciated.
I'm calling an onChange but it gives me an error