Prior to this PR, this repository utilized an express. That express server hosted API endpoints which either returned JSON objects or rendered UI pages.
This project was not built with a separation of UI and API components in mind (for reasons!) - however, requirements have changed, and the usage of react components is deemed necessary.
In that repo, I started with an express application that rendered an HTML page, and then I added react into that rendered HTML page.
After this PR, we will be able to write react components and inject them into the DOM - and we have this capability while not rewriting existing pages 🎊 I'm pretty happy with the solution overall, and it still opens up the option to slowly migrate the whole application to react.
Description
Prior to this PR, this repository utilized an express. That express server hosted API endpoints which either returned JSON objects or rendered UI pages.
This project was not built with a separation of UI and API components in mind (for reasons!) - however, requirements have changed, and the usage of react components is deemed necessary.
To figure out how to integrate React (without rewriting the application), I performed a POC ("proof of concept") in this repo: https://github.com/gavinvaske/add_react_to_existing_express_app
In that repo, I started with an express application that rendered an HTML page, and then I added react into that rendered HTML page.
After this PR, we will be able to write react components and inject them into the DOM - and we have this capability while not rewriting existing pages 🎊 I'm pretty happy with the solution overall, and it still opens up the option to slowly migrate the whole application to react.