Function effect

  • Define what happens when a reactive state changes

    Type Parameters

    Parameters

    • matcher: EffectMatcher<S> | () => void | () => void

      effect matcher or callback

    Returns () => void

    • cleanup function for the effect

    0.1.0