nens / lizard-catalogue

Lizard Catalogue
https://demo.lizard.net/catalogue/
0 stars 0 forks source link

Change class components to hooks components #257

Closed hoanphungt closed 3 years ago

hoanphungt commented 3 years ago

@Derryrover Hi Tom,

I converted some of the main components from class based components to hooks components including the FilterBar, Header and the MainApp components. Would you like to review? The most important part is I moved all the component life cycles (componentDidMount, componentWillUpdate) in the MainApp to useEffect callbacks. I used several useEffects for them with the hope that the work flow is now clearer so this part will become more maintainable in the future.

Kr, Hoan