TomTom Maps in React with Typescript

Is there a way to use TomTom Maps in React with Typescript?

Hello,
Yes, it is.
You can read more here:

So Michal maybe You could help me.
Here is my code.

When I use useRef hook I have an error in div with ref

But when I use mapId in mapOptions it almost works, but the page with map is empty, only Menu Component is rendered. Any ideas where could be a problem?

@tomczykm could you help?