Diorama

Made for a big screen.

This site is one 3D scene, built for a computer: a wide window and a mouse. Open dioramajs.dev on a desktop or a laptop to see it.This site is one 3D scene, built for a wide window. Make this one wider, or open dioramajs.dev on a larger screen.

GitHub

DioramaDocs

effect function

Runs `fn` now and again whenever a signal it read changes.

View as Markdown
import { effect } from '@dioramajs/diorama/core'

Returns Off.

function effect(fn: EffectFn): Off

Parameters

NameTypeDescription
fnEffectFn

Also exported from @dioramajs/core.

Defined in packages/core/src/kernel/signals.ts.