mirror of
https://github.com/streamich/react-use.git
synced 2026-01-25 14:17:16 +00:00
Updates
This commit is contained in:
parent
5c40c42d2c
commit
25f63148cc
@ -22,6 +22,6 @@
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
<div id="error-display"></div>
|
||||
<script type="text/javascript" src="static/preview.2f34391330f12c012af8.bundle.js"></script></body>
|
||||
<script type="text/javascript" src="static/preview.ea3ab98ea4aa87f9cc14.bundle.js"></script></body>
|
||||
|
||||
</html>
|
||||
@ -40,5 +40,5 @@
|
||||
</head>
|
||||
<body style="margin: 0;">
|
||||
<div id="root"></div>
|
||||
<script type="text/javascript" src="static/manager.aebb3e23f1ec6b7057ad.bundle.js"></script></body>
|
||||
<script type="text/javascript" src="static/manager.6f538734944b92b0b1b8.bundle.js"></script></body>
|
||||
</html>
|
||||
|
||||
2
lib/react.d.ts
vendored
2
lib/react.d.ts
vendored
@ -1,4 +1,4 @@
|
||||
export declare type UseState = <T>(initialState: T) => [T, (newState: T) => void];
|
||||
export declare type UseState = <T>(initialState: T | (() => T)) => [T, (newState: T) => void];
|
||||
export declare const useState: UseState;
|
||||
export declare type UseEffect = (didUpdate: () => ((() => void) | void), params?: any[]) => void;
|
||||
export declare const useEffect: UseEffect;
|
||||
|
||||
2
lib/useLocalStorage.d.ts
vendored
2
lib/useLocalStorage.d.ts
vendored
@ -1,2 +1,2 @@
|
||||
declare const useLocalStorage: (key: string) => string | undefined;
|
||||
declare const useLocalStorage: <T>(key: string, initialValue?: T | undefined, raw?: boolean | undefined) => [T, (value: T) => void];
|
||||
export default useLocalStorage;
|
||||
|
||||
1
static/manager.6f538734944b92b0b1b8.bundle.js
Normal file
1
static/manager.6f538734944b92b0b1b8.bundle.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user