Open atherdon opened 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).
Btw, i didn't saw that you complete the test part. maybe you not pushed something to the repo?
each item should have recipe_url, image, ingredient list(sub-array), directions(sub-array), description(string)
I just add two sub arrays to meals in componentWillMount
.
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
@nioperas06 I think we forget to add data, related to directions(recipe steps
). please add it and make directions list as separated component too
https://medium.com/quick-code/lets-learn-react-chapter-7-component-life-cycle-6aaa815747db
Expected result
Test
1