Function state

Create a new state signal

0.9.0

  • Type Parameters

    • T extends {}

    Parameters

    • initialValue: T

      initial value of the state

    Returns State<T>

    • new state signal