GroceriStar / react-only-intern-22

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

Master React, Quick Code tutorial. Part 7 #8

Open atherdon opened 6 years ago

atherdon commented 6 years ago

https://medium.com/quick-code/lets-learn-react-chapter-7-component-life-cycle-6aaa815747db

Expected result

Test

nioperas06 commented 6 years ago

React components have lifecycle. It is series of actions executed before React component is displayed (componentWillMount), after component is displayed (componentDidMount), before component is updated (componentWillUpdate) and after component is updated (componentDidUpdate).

atherdon commented 6 years ago

Btw, i didn't saw that you complete the test part. maybe you not pushed something to the repo?

nioperas06 commented 6 years ago

https://github.com/GroceriStar/react-only-intern-22/commit/9d9f5e87f806335fd647978985767ef1917b8230

atherdon commented 6 years ago

each item should have recipe_url, image, ingredient list(sub-array), directions(sub-array), description(string)

nioperas06 commented 6 years ago

I just add two sub arrays to meals in componentWillMount.

atherdon commented 6 years ago

ok, looks cool. will create some more small improvements and will share them with you soon. Btw, can you move your recipes into data folder, i think it'll make components looks more clear

atherdon commented 6 years ago

@nioperas06 I think we forget to add data, related to directions(recipe steps). please add it and make directions list as separated component too