Skip to content

benbynum/use-like-toggle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

useLikeToggle

View Demo

A custom hook for liking/favoriting content. This uses a mock API that simply writes the ID of the elments to local storage.

useLikeToggle GIF

In the project directory, you can run:

npm install

Installs all necessary dependencies

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

About

A custom react hook for liking or favoriting

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published