import ReactDOM from "react-dom"
import React from "react"
import Map from "./components/Map/Map.v1"
const App = () => {
return <Map />
}
ReactDOM.render(<App />, document.getElementById("app"))
Am I doomed trying to make it work inside a React component? Or is there a way I can solve the Node.appendChild: Argument 1 does not implement interface Node. problem?
Hi,
So I am trying to use Mappa and p5 run inside a React component.
But when the app is rendered, the Leaflet map ends up outside the
id=app
and<canvas>
elements. The map works fine with scroll, drag etc.The error message from the React framework trying to put the map inside the app.
My
Map.v1.js
file:My
index.js
file:Am I doomed trying to make it work inside a React component? Or is there a way I can solve the
Node.appendChild: Argument 1 does not implement interface Node.
problem?