diff --git a/beta/src/content/apis/react/useCallback.md b/beta/src/content/apis/react/useCallback.md index 45a50898..46a1fce0 100644 --- a/beta/src/content/apis/react/useCallback.md +++ b/beta/src/content/apis/react/useCallback.md @@ -744,8 +744,8 @@ function useRouter() { dispatch({ type: 'navigate', url }); }, [dispatch]); - const goBack = useCallback((url) => { - dispatch({ type: 'back', url }); + const goBack = useCallback(() => { + dispatch({ type: 'back' }); }, [dispatch]); return {