mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-25 23:05:23 +00:00
Tip => Note
"Tip" usually contains an action for you to perform. "Note" is more appropriate here since it's just an FYI.
This commit is contained in:
@@ -396,7 +396,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 (
|
||||
|
||||
Reference in New Issue
Block a user