I've been teaching high school for 10 years, and you have a talent for modeling how to think through a coding scenario. I like how you explain what's going on and you don't make assumptions that your viewers already know what you're talking about. As a beginner to React, this is a great resource. I hope you continue to make videos.
You help me a lot! Question, how can i do if i want to stop in 0 (zero) the negative button. I don't want to show negative numers. Thanks a lot! New suscriber (:
you can do it with function like that: function subtract() { if(count > 0) setCount(oldCount => oldCount - 1)} after you declare this function you only need to add your function to button like this: -