https://github.com/mainick/react-hook-usememo
Esempi di utilizzo dell'hook React useMemo
https://github.com/mainick/react-hook-usememo
Last synced: about 1 year ago
JSON representation
Esempi di utilizzo dell'hook React useMemo
- Host: GitHub
- URL: https://github.com/mainick/react-hook-usememo
- Owner: mainick
- Created: 2020-12-02T13:59:18.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-12-02T14:13:00.000Z (over 5 years ago)
- Last Synced: 2025-01-23T02:31:47.555Z (over 1 year ago)
- Language: JavaScript
- Size: 210 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Esempi React Hook useMemo
L'hook useMemo è utile per migliorare le prestazioni delle app in React,
può essere utilizzato per ottimizzare i costi di calcolo dei componenti.
*Nota: da non confondere con l'API memo di React: useMemo è usato per memorizzare i valori, l'API memo per avvolgere i componenti React e prevenire il rendering.*
In questo esempio modifichiamo l'app delle cose da fare *todos* utilizzando l'hook useMemo.
https://codesandbox.io/s/react-hook-usememo-0f9y9