GroceriStar / react-only-intern-22

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

Master React, Quick Code tutorial. Part 6 #7

Open atherdon opened 6 years ago

atherdon commented 6 years ago

https://medium.com/quick-code/lets-learn-react-chapter-6-updating-component-state-80fcc7c01d24

Expected result

Test

1

nioperas06 commented 6 years ago

setState() is the way to update React component state. setState just takes object and replace current component state. setState can also take a function because setState call is asynchronous.

nioperas06 commented 6 years ago

Hi @atherdon I just finished this tutorial. The source code is in Meal.js Component. Thanks.

atherdon commented 6 years ago

ok, revieing your code right now