메모제이션한 함수를 반환한다.
facebook: useCallback link
facebook: useCallback
link
const [list, setlist] = useState([]) const count = useCallback(() => { setCount(list)}, list)