Open atherdon opened 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.
Hi @atherdon I just finished this tutorial. The source code is in Meal.js Component. Thanks.
ok, revieing your code right now
https://medium.com/quick-code/lets-learn-react-chapter-6-updating-component-state-80fcc7c01d24
Expected result
Test
1