How do projects created with create-react-app use nodejs as the back end?

because there is an official react-dev-server, I use express to write a node server feel there is a conflict? How to solve it

May.10,2022

just write in express, except that there are two services running during development, one front-end service and one back-end service, and the front end requests back-end services across domains


the project I am in charge of now is the transfer background
written by koa2 in the foreground of react created by create-react-app. There is no conflict in the development
react access node transit route, node processing http request return data
does not affect each other, the front end writes the front end code koa2 writes the corresponding service
, which is different from directly accessing the xxxx.service is to visit the corresponding service of node first and then node to adjust the corresponding interface

.
  //koa
  const param = {
    url: 'login',
    params: { },
    dispatch, getState, fail: loginFail
  }
   
  const { data: { config, list } } = await get(param);
 // Login http
 router.get('login', async (ctx, next) => {
    const xx= new Login('Login');
    await xx.login(ctx, next);
  })
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3887d-344ea.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3887d-344ea.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?