React and Express are the most popular web framework stack. Many developers create their React and Express projects separately. This means that you have to host 2 different projects: a server, and the static react site. But ExpressJS is a server that can serve static files. So with a little bit of setup, we can serve your React app from your Express app from 1 project.
The github repository: https://github.com/jgbijlsma/react-ex...
00:00 Intro
04:13 React app setup
10:47 Express app setup
17:27 Problem: React fetch from API
24:30 Solution: serve static react app from Express
29:17 Rendering the data
31:33 The other problem: development environment
34:52 Solution: proxy
Watch video Serve a React app from an Express server | React frontend and Express API setup in 1 project! online without registration, duration hours minute second in high quality. This video was added by user Devistry 14 October 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 18,698 once and liked it 565 people.