Can we use JSX for view engine in express

hey …
I’m just asking if we can use JSX as the template engine in express , or it’s limited for EJS and PUG or a regular HTML ?
thanks in advance

JSX is not a template engine, so no. You can use any JS template engine with Express.

You can build React apps that render on the server (see Next.js and Gatsby for example). The ReactDOM library allows rendering as strings, which in turn allows this functionality. Google React SSR (server-side rendering) if you are interested, it does generally make things a lot more complicated though.

1 Like