Skip to content

A hook for having faster localStorage for React apps πŸ‘¨πŸ»β€βš•οΈ

License

Notifications You must be signed in to change notification settings

alirezavalizade/use-none-blocking-local-storage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

13 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation



πŸ‘¨πŸ»β€βš•οΈ
use-none-blocking-local-storage


Example

const App = () => {
    const [state, setState] = useStorage('my-key', { a: 1, b: 2, c: 3 });

    useEffect(() => {
        setState(...);
    }, [...deps]);

    console.log('state', state);
    
    return null;
};

About

A hook for having faster localStorage for React apps πŸ‘¨πŸ»β€βš•οΈ

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published