Sunday 20 January 2019

Connecting NodeJS Request Promise API to React.JS

Hey everyone,I apologize if this isn't the right subreddit but I thought this would be a good place to ask.Anyway, I'm currently trying to build an app using the coinmarketcap api. I have the basic skeleton up thus far, but I'm a little confused on how to fetch a NodeJS request-promise from the client side. I'm able to console.log the API, but I don't know how to pull this in with React.Attached below is a gist link to my server.js file along with my main App file.https://gist.github.com/camus-code/84c53662d29bf973e8ba2f167122727cThanks in advance!

Submitted January 20, 2019 at 07:25PM by kevbr

No comments:

Post a Comment