Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions R1_useContextReducer_useContextuseReducer/Finished/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,12 +159,12 @@ function CounterSummary() {
const setVisibleTab1 = React.useCallback((event) => {
tabDispatch({ type: 'change-tab', tab: 1 })
event.preventDefault();
});
}, []);

const setVisibleTab2 = React.useCallback((event) => {
tabDispatch({ type: 'change-tab', tab: 2 })
event.preventDefault();
});
}, []);

return (
<section>
Expand All @@ -188,4 +188,4 @@ const CounterSummaryDetail = React.memo(function CounterSummaryDetail({ name, to
return (
<p>{name} ({total})</p>
)
});
});