Browse Source

Merge pull request #1324 from moroshko/patch-6

Tip => Note
main
Saransh Kataria 6 years ago
committed by GitHub
parent
commit
c8184872f8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      content/docs/hooks-faq.md

2
content/docs/hooks-faq.md

@ -560,7 +560,7 @@ In large component trees, an alternative we recommend is to pass down a `dispatc
const TodosDispatch = React.createContext(null);
function TodosApp() {
// Tip: `dispatch` won't change between re-renders
// Note: `dispatch` won't change between re-renders
const [todos, dispatch] = useReducer(todosReducer);
return (

Loading…
Cancel
Save