GroceriStar / react-only-intern-22

GNU General Public License v3.0
0 stars 0 forks source link

Master React, Quick Code tutorial. Part 5 #6

Closed atherdon closed 6 years ago

atherdon commented 6 years ago

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?

nioperas06 commented 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).

nioperas06 commented 6 years ago

Yes, the amount of code is quite small and the code much more readable.

atherdon commented 6 years ago

I like the naming of commits. I'll check your code - you can move to next chapter for now

atherdon commented 6 years ago

Btw, you're going pretty fast - nice progress so far!

atherdon commented 6 years ago

cool. you can move to the next chapter