dan 2 years ago
committed by GitHub
parent
commit
e7115470bb
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      beta/src/content/apis/react/useCallback.md

4
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 {

Loading…
Cancel
Save