ReactJs: 🔗 https://pt-br.reactjs.org/
NodeJs: 🔗 https://nodejs.org/en/
- Clone this repo
git clone https://github.com/Aleydon/Repositories.git
- Install NPM packages
npm install or yarn install
- Run this project
npm start or yarn start
useEffect(() => {
localStorage.setItem('@favorite/repos', JSON.stringify(repositories));
}, [repositories]);
const handleDeleteRepository = useCallback(
(repo) => {
const repoDelete = repositories.filter(
(filtered) => filtered.name !== repo,
);
setRepositories(repoDelete);
localStorage.removeItem(repoDelete);
},
[repositories],
);