You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
573 B
26 lines
573 B
6 months ago
|
import React, { useEffect } from 'react'
|
||
|
import L from 'leaflet'
|
||
|
import { render } from 'react-dom'
|
||
|
|
||
|
export const useRenderPopup = (props) => {
|
||
|
const container = L.DomUtil.create('div')
|
||
|
// const dispatch = useAppDispatch()
|
||
|
useEffect(() => {
|
||
|
render(
|
||
|
<div>
|
||
|
<p>mbuh</p>
|
||
|
<a
|
||
|
onClick={() => {
|
||
|
console.log('abc')
|
||
|
}}
|
||
|
>
|
||
|
sdjsljf
|
||
|
</a>
|
||
|
{/* <a onClick={() => dispatch(setDevice(props.geoJsonPoint.properties))}></a> */}
|
||
|
</div>,
|
||
|
container
|
||
|
)
|
||
|
}, [])
|
||
|
return container
|
||
|
}
|