๐—ฅ๐—ฒ๐—ฎ๐—ฐ๐˜ ๐—›๐—ผ๐—ผ๐—ธ๐˜€ ๐—ง๐—ถ๐—ฝ

React creates new functions on every render. Child components see this as a change. They re-render even if the data stays the same. This slows your app.

Use useCallback. It stores your function. It stops extra renders. Your app runs faster.

Follow these steps:

Source: https://dev.to/vishwajeet81/tip-of-the-day-on-react-hooks-2ceb