0

so I have a project that I want to use react.js for my front end and use node with mysql for my back end. Is there any guides or examples that would help me with this? I know how to use node with mysql but having trouble connecting it to react.js front end. Coming from an angularjs background, what is the equal to using https? Are there any examples that I can look at for guidance?

1 Answer 1

1

React doesn't have its own version of the HTTP service.

You can use something like Fetch: https://www.npmjs.com/package/whatwg-fetch which is a polyfill for the not yet fully supported Fetch API.

You can read more about Fetch API here: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API

Another alternative is Axios: https://www.npmjs.com/package/axios

Sign up to request clarification or add additional context in comments.

1 Comment

thank you, is there any code examples like on github of it being used that way? does it matter I use axios or fetch?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.