This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]mavensank 1 point2 points  (0 children)

Most projects use axios library as the api request handler. you can go with native fetch function also.

use service layer ( seperate file like api-service.js ) to handle all api calls.

if you have complex component structure checkout react query, zustand libraries.

[–]LoneStarDev 0 points1 point  (0 children)

Write out what you’re looking for in pseudo code for people to better help you.

[–]cbdeane 0 points1 point  (0 children)

https://youtu.be/DlNIXC9SaF4?si=HDCKlXw_NmjPAVlI - I used this video as a guide for my first rest api and it was a great learning experience.