Skip to main content

The frontend example

examples/frontend — the smallest thing that is still a platform.

Two plugins, each contributing one component to a slot, mounted by an application that only calls useReactor and renders ReactorSlot. There is no backend, no extension and no laziness: it exists so the shape is visible without anything else in the way.

npm run build # from the repository root
npm run example:dev
FileWhat it shows
src/plugins/welcomeCardPlugin.tsxdefinePlugin with a slot component
src/plugins/statusBannerPlugin.tsxa second plugin in the same slot
src/App.tsxbuildReactorFromPlugins, useReactor, ReactorSlot

Read Plugins and React bindings alongside it.