Skip to content

Commit ee097b0

Browse files
author
devmagazinepodcast
committed
Add comment
1 parent 7a025c6 commit ee097b0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/screens/Counter.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ function reducer(state, action) {
2424

2525
export function Counter({ initialCount }) {
2626
const [state, dispatch] = useReducer(reducer, initialCount, initState)
27+
// or useReducer(reducer, { count: initialCount })
2728

2829
function increment() {
2930
dispatch({ type: 'increment' })

0 commit comments

Comments
 (0)