Allicce / engeto-hackethon-team-3

0 stars 0 forks source link

[frontend]Create reusable API call for get information about categories #16

Open Allicce opened 3 days ago

Allicce commented 3 days ago

create reusable function / custom hook with axios to call our api for categories for some period and return data as {data, loading, error}

eg custom hook https://medium.com/@nelson_examiner/building-custom-react-hooks-for-calling-apis-ab82a6b45ff