• Register support for atoms on this client using React hooks.

    Parameters

    • client: Client

    Returns (<T>(key, def) => [value: T, setter: ((v) => boolean)])

      • <T>(key, def): [value: T, setter: ((v) => boolean)]
      • Type Parameters

        • T extends Atom

        Parameters

        • key: string
        • def: T

        Returns [value: T, setter: ((v) => boolean)]