Link to home
Start Free TrialLog in
Avatar of Michael Sterling
Michael SterlingFlag for United States of America

asked on

What are the pros and cons of making your api call from within your react app verses creating a separate api application?

I'm new to creating/using APIs and React, so can someone give me some pros and cons (or links to articles that detail the pros and cons) of making your api calls directly in your react app vs. creating a separate api application?
ASKER CERTIFIED SOLUTION
Avatar of Chris Stanyon
Chris Stanyon
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Michael Sterling

ASKER

I see now that my question didn't make as much sense as I originally thought. But to your point (and mine I think): React is going to make the API call, the API itself will be written OUTSIDE of the react application as it would have to be, right? I think I confused myself about where each application would/could live i.e.: both applications on the same server vs. on two different servers. So in the main regard, thank you for your response and in a lessor regard, never mind haha!
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
"Getting your head around all the different moving parts of more complex applications can be quite tricky :) "

Man you ain't kiddin! Thanks again!