React Hook, Hooks, React.
functions are re-rendered again. to solve this kind of problems we use useCallback() import React, { useState, useCallback } from ‘react’ const Counter = () => { const [count, setCount] = useState(0) const [otherCounter, setOtherCounter] = useState(0) const increment = useCallback(() => {