BarefootJS uses fine-grained reactivity inspired by SolidJS. For a conceptual overview, see Core Concepts.

All reactive primitives are imported from @barefootjs/dom:

import { createSignal, createEffect, createMemo, onMount, onCleanup, untrack } from '@barefootjs/dom'

#API Reference

API Description
createSignal Create a reactive value
createEffect Run side effects when dependencies change
createMemo Create a cached derived value
onMount Run once on component initialization
onCleanup Register cleanup for effects and lifecycle
untrack Read signals without tracking dependencies

#Guides

  • Props Reactivity — How props stay reactive, and when destructuring breaks it