stevenpetryk / mafs

React components for interactive math
https://mafs.dev
MIT License
3.23k stars 87 forks source link

mafs in observable? #111

Open saludes opened 1 year ago

saludes commented 1 year ago

I'd love to see mafs working in Observable but the standard require doesn't seem to work. I've tried some of the ideas in https://observablehq.com/@observablehq/how-to-require-stubborn-modules to no avail.

Care to write a minimal working example there?

stevenpetryk commented 1 year ago

I think that'd be neat, however, it looks like using JSX in Observable is not a first-class thing: https://observablehq.com/@mbostock/hello-jsx. This is tangentially related to #89 because both relative to how Mafs doesn't have a UMD build.

At the moment it's super unclear to me what Observable needs.