DEV Community

loading...

Discussion on: A Simple Approach to Managing API Calls

Collapse
dyeplucban profile image
Globoy • Edited

I got an error on exporting individual api when creating a custom function.

but if directly export it, it works. I don't know what's wrong.

EXPORT ERROR

Collapse
kevinpallado profile image
Kevin Pallado

hi did you try to create customCall? can you show me how you done

Collapse
mmcshinsky profile image
Michael McShinsky Author

task-api-example.js has one. You can add your axios logic there.

Collapse
mmcshinsky profile image
Michael McShinsky Author

You'll either want to on line 3 export const skillsApi or on line 17 export default skillsApi.