core/functional_state library

Functions

useComputed<R>(R computation(), {List<Reactive>? dependencies}) Reactive<R>
Creates a computed value that automatically updates when dependencies change.
useEffect(void effect(), {List<Reactive>? dependencies}) → void
Creates an effect that runs when dependencies change.
useState<T>(T initialValue) Reactive<T>
Creates a stateful value that can be used in functional contexts. This is a simplified version - in a full implementation, this would integrate with a widget system to manage the lifecycle.