react-alien-signals
    Preparing search index...

    Function createEffect

    • Creates a reactive effect that automatically re-runs when its tracked signals update.

      Parameters

      Returns () => void

      A stop function to cancel the effect.

      const count = createSignal(1);
      const stopEffect = createEffect(() => {
      console.log('Count is', count());
      });

      // To stop the effect:
      stopEffect();