Function createState

  • Parameters

    • initState: any

    Returns ((selector, equalityFn?) => any)

      • (selector, equalityFn?): any
      • Parameters

        • selector: any
        • equalityFn: ((value1, value2) => boolean) = Object.is
            • (value1, value2): boolean
            • Returns true if the values are the same value, false otherwise.

              Parameters

              • value1: any

                The first value.

              • value2: any

                The second value.

              Returns boolean

        Returns any

Generated using TypeDoc