DEV Community

Discussion on: What was your win LAST week?

Collapse
 
christiankozalla profile image
Christian Kozalla • Edited

I've been looking for a monolithic CMS written in Node.js, but didn't find anything suitable.

Luckily, I've managed to integrate Express, React and PayloadCMS which supports connecting to a locally running instance of MongoDB - so I've got everything in one place :D

Cherry on top - I use Reacts JSX as a template engine, although I don't want/need interactivity in the browser. So I render components with React.createElement inside Express route handlers and can even stream HTML with res.send(renderToStaticNodeStream(template))

PS renderToStaricNodeStream is imported from "react-dom/server"

😍