File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -60,8 +60,8 @@ function Counter({initialCount}) {
6060 <>
6161 Count: {count}
6262 < button onClick= {() => setCount (initialCount)}> Reset< / button>
63- < button onClick= {() => setCount (prevCount => prevCount + 1 )}> + < / button>
6463 < button onClick= {() => setCount (prevCount => prevCount - 1 )}> - < / button>
64+ < button onClick= {() => setCount (prevCount => prevCount + 1 )}> + < / button>
6565 < / >
6666 );
6767}
@@ -231,8 +231,8 @@ function Counter() {
231231 return (
232232 <>
233233 Count: {state .count }
234- < button onClick= {() => dispatch ({type: ' increment' })}> + < / button>
235234 < button onClick= {() => dispatch ({type: ' decrement' })}> - < / button>
235+ < button onClick= {() => dispatch ({type: ' increment' })}> + < / button>
236236 < / >
237237 );
238238}
@@ -290,8 +290,8 @@ function Counter({initialCount}) {
290290 onClick={() => dispatch({type: 'reset', payload: initialCount})}>
291291 Reset
292292 </button>
293- <button onClick={() => dispatch({type: 'increment'})}>+</button>
294293 <button onClick={() => dispatch({type: 'decrement'})}>-</button>
294+ <button onClick={() => dispatch({type: 'increment'})}>+</button>
295295 </>
296296 );
297297}
You can’t perform that action at this time.
0 commit comments