BokehJS with create-react-app simple embedding?

Hello everyone,

I try to integrate directly into my create-react-app a bokehjs figure without going through an Axios getter.

The code below is obviously not the right thing to do but I was wondering if there is a way to do it in this spirit?

Thanks in advance,

import * as Bokeh from "bokehjs"

class Radar extends Component {

    radarPlot = Bokeh.Plotting.figure()

    render() {

        return (
            <div>{this.radarPlot}</div>
        );
    }
}

If you have installed @bokeh/bokehjs via NPM, I think you should be able to use something like

import { figure } from "@bokeh/bokehjs/build/js/lib/api/plotting";