简体   繁体   中英

How to LInk Backend(Node.js) to front-End(React)

I am starting out on React.js after learning Node.js using Express. But I don't know How to Link my Backend App to front end React files? Can someone provide me a simple solution to the problem

You can begin with this steps, you got a thousands of topics about to make a complete and solid infrastructure:

  1. Initialise your node.js server with port, cors (if you need)
  2. Learn how express work with node.js and create your first route
  3. Initialize your react project with or without npx create-react-app
  4. Create your first frontend component and fetch data from your API

Link : https://www.freecodecamp.org/news/create-a-react-frontend-a-node-express-backend-and-connect-them-together-c5798926047c/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM