ref<T> function

Ref<T> ref<T>(
  1. T initialValue
)

Creates a reactive Ref with the given initial value.

Implementation

Ref<T> ref<T>(T initialValue) =>
    (useKaeruContext()?.ref ?? Ref.new)(initialValue);