@engraft/host-observable
v0.0.8
Published
A library for embedding Engraft in Observable
Downloads
8
Readme
Engraft-Observable Embedding (Host)
This directory contains the codebase for the host that runs Engraft within Observable
The host is a React component that wraps hooks necessary to run Engraft. On the notebook side, there is another React component that wraps this embedding for additional logic (see dev doc).
By convention, code should be written as close to Observable as possible (i.e. in the notebook), and only in this repo when necessary. (e.g. when needing strictly typed code, etc.)
This codebase is meant to be bundled into a .js lib with Vite, and imported into the Observable host notebook.
Development notes
This package is currently an "app" rather than a "lib" – it would be nice if it could be both, but that causes issues at least with CSS handling...