react-alien-signals
    Preparing search index...

    Function createSignal

    • Creates a writable Alien Signal.

      Type Parameters

      • T

        The type of the signal value.

      Parameters

      • initialValue: T

        The initial value of the signal.

      Returns WritableSignal<T>

      A writable signal.

      const count = createSignal(0);
      count(10); // updates count to 10
      count(); // returns 10