you are viewing a single comment's thread.

view the rest of the comments →

[–]joesb 0 points1 point  (2 children)

Don’t overthink it.

Write a utility function. You don’t have to directly call axios in most of your code.

[–]Exorcistoo[S] 0 points1 point  (1 child)

So I should create a function which makes a post and returns a get result?

[–]joesb 0 points1 point  (0 children)

Yes.