SE701-T5 / Frontend

This is the frontend repo of Uni-forum, associated with the University of Auckland, SOFTENG701. This repo will be linked to Netlify for ease of deployment and code review
MIT License
1 stars 22 forks source link

Add hooks for calling API #88

Closed frasermcc9 closed 2 years ago

frasermcc9 commented 2 years ago

Without using a reusable hook, every request needs highly verbose code written inside a useEffect. Propose using axios + swr to make this convenient.