Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/levo/mod/levo-view.ts>Levo.register

Server side rendering with The Elm Architecture in Deno
Latest
variable Levo.register
import { Levo } from "https://deno.land/x/levo@v0.0.27/mod/levo-view.ts";
const { register } = Levo;

type

<Model, Action extends { $: string; }>(unnamed 0: { init: Levo.Init<Model, Action>; view: (args: { model: Model; dispatch: Levo.Dispatch<Action>; }) => Levo.Element; update: Levo.Update<Model, Action>; }) => void