avishai84 / numbers

0 stars 0 forks source link

useReducer should change only its state #8

Open tamirla opened 4 years ago

tamirla commented 4 years ago

https://github.com/avishai84/numbers/blob/39ce4d0c20109a2428dc40f1f9256a492e0caa14/src/components/NumbersModule.tsx#L17

in this case you should move level to reducer's state

avishai84 commented 4 years ago

Cool. I didn't know. 👍