yalla-coop / rent-check

An application for East End Trades Guild and Guardians of the Arches to allow commercial tenants to share and view rental data in their local area
0 stars 0 forks source link

AS A developer I NEED TO refactor the application to use hooks SO THAT the code style is consistent across old and new components #48

Closed arrested-developer closed 5 years ago

arrested-developer commented 5 years ago
amusameh commented 5 years ago

Used Hooks:

useReducer: it's the same as useState but combine more that one state which is related to each others. + how to create custom apiFetch hook

Links: https://reactjs.org/docs/hooks-reference.html#usereducer https://www.robinwieruch.de/react-hooks-fetch-data