Closed atherdon closed 6 years ago
React components state is something like a variable (not really a storage) where I can keep track of information between any renders. setState updates the state object and then re-renders the component. We can add listener to buttons or input (onChange or onClick).
Yes, the amount of code is quite small and the code much more readable.
I like the naming of commits. I'll check your code - you can move to next chapter for now
Btw, you're going pretty fast - nice progress so far!
cool. you can move to the next chapter
https://medium.com/quick-code/lets-learn-react-chapter-5-component-state-f9eccc8df2cf https://reactjs.org/docs/state-and-lifecycle.html
Expected result
as this chapter is more about understanding details - there no a coding test section
Question
what do you think, after reading this chapter - is state will replicate partially a work of jquery things? i mean will state reduce amount of jquery work?