Skip to content

mayan-sharma/use-everything

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

use-everything

A custom react hooks library.

npm install use-everything

Hooks

useTodo

const { todos, addTodo, removeTodo, handleToggle } = useTodo();

useCounter

const { val, inc, dcr, set, reset } = useCounter();

useForm

const { inputs, handleChange, resetForm, clearForm } = useForm({ ...fields });

useSet

const { set, add, remove, has } = useSet();

useAxios

const { res, error, loading } = useAxios(url='', method='', headers={}, params={}, query={});

useLocalStorage

const { item, setItem, removeItem } = useLocalStorage(key, value);

useCookie

const { cookie, setCookie, removeCookie } = useCookie(key, value);

About

A custom react hooks library.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published