DEV Community

Discussion on: Implementing Server Side Rendering using React and Express

Collapse
 
lailys profile image
Laily Sarvarian

may I know where is the part that compiles ejs to the public folder?

Collapse
 
achhapolia10 profile image
Anshuman Chhapolia

ejs is not compiled to public folder. EJS is compiled and rendered at runtime. We bundle the React hydrate so that we can serve that with the rendered html. You can find it in webpack.config.js. You can refer to this repository. It contains frontend for a forum with the same concept. This will also give an idea how to serve CSS and other assets.