Looks like I got it.
We can set the state of the widget with the JMV with the "activeViewChangeHandler"
Something like this:
const [jimuMapView, setJimuMapView] = useState<JimuMapView | null>(null)
const testingMapGoTo = () => {
jimuMapView.view.goTo({
center: [-119, 33],
zoom: 13
})
}
const activeViewChangeHandler = (jmv: JimuMapView) => {
if (jmv) {
setJimuMapView(jmv);
}
}
I would be super interested if someone has implemented this in any other way