Reactive APIs
    Preparing search index...
    • Creates a new mutable signal, initialized to undefined.

      Example:

      const foo = reactive<number>();
      console.log(foo.value); // undefined
      foo.value = 123; // updates the current value

      Type Parameters

      • T

      Returns Reactive<undefined | T>

    • Creates a new mutable signal, initialized to the given value.

      Example:

      const foo = reactive(123);
      console.log(foo.value); // 123
      foo.value = 456; // updates the current value

      Type Parameters

      • T

      Parameters

      Returns Reactive<T>