DEV Community

Discussion on: Using Create-React-App with Express

Collapse
 
tomsoderlund profile image
Tom Söderlund

Thank you for this article!

But how can I enable hot reloading in the CRA client when running node/nodemon?

Currently I'm stuck with this solution:

"scripts": {
  "devserver": "nodemon -w server -w package.json server/server.js",
  "devclient": "react-scripts start"
}
Collapse
 
j8298c profile image
Julio Mojica

Hey Tom you can use this package npmjs.com/package/concurrently and create a script for it to run both devserver and devclient at the same time for you.