@mongez/react-atom
Version:
A simple state management tool for React Js.
14 lines • 464 B
TypeScript
import { type Atom } from "@mongez/atom";
import React from "react";
import { ReactAtom } from "./types";
export declare const AtomContext: any;
/**
* Get clone of the given atom key
*/
export declare function useAtom<T = any>(key: string): ReactAtom<T>;
export declare function AtomProvider({ register, defaultValue, children, }: {
register?: Atom<any>[];
children: React.ReactNode;
defaultValue?: any;
}): any;
//# sourceMappingURL=context.d.ts.map