Using EJS, templating engines in 2019?

Are they still relevant with newer technologies like react?

I am creating a portfolio project with nodejs, ejs for my views, and mysql.

This feels different than I am used to, especially when I am more familiar with procedural PHP.

Templating engines are useful if you want server side rendering (SSR) of your app, so a more apples to apples comparison with other templating engines would be with something like Next.js (SSR for React) rather than react itself, as react in and of itself is for client side rendering (CSR). There are pros and cons to using both, but the biggest pros I am aware of is that SSR is more powerful for SEO and CSR is great for web apps and fast interaction. So it depends on what you are wanting / targeting.

good article about CSR / SSR

1 Like