Create a Rezi application instance.
Application options
An App instance
// For Node/Bun apps, prefer createNodeApp() from @rezi-ui/node:// const app = createNodeApp({ initialState: { count: 0 } });// For custom runtimes/backends, compose manually:const app = createApp({ backend, initialState: { count: 0 } });app.view((state) => ui.column({ p: 1 }, [ ui.text(`Count: ${state.count}`), ui.button({ id: "inc", label: "+1" }), ]));await app.run(); Copy
// For Node/Bun apps, prefer createNodeApp() from @rezi-ui/node:// const app = createNodeApp({ initialState: { count: 0 } });// For custom runtimes/backends, compose manually:const app = createApp({ backend, initialState: { count: 0 } });app.view((state) => ui.column({ p: 1 }, [ ui.text(`Count: ${state.count}`), ui.button({ id: "inc", label: "+1" }), ]));await app.run();
Create a Rezi application instance.
Param: opts
Application options
Returns
An App instance
Example