treating observablejs as javascript library in react

Hey, i really like using Observable in quarto via the ojs chunks and would like to do something similar in react. I know it is possible to embed observable notebooks but is there any way to use observablejs like a javascript library i.e. write and import ojs modules in local files?

1 Like

Not that I am aware of. The embedding code provided by Observable uses the Runtime and the Inspector to execute compiled JS code and render it in a DOM element. What tools like Quarto are doing goes beyond that, including a compiler etc.

Perhaps others in the community have experimented with this, though.