The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Use JSX as an Express templating engine with react-engine

Use JSX as an Express templating engine with react-engine

5:25
react-engine from Paypal eliminates the need for third-party template engines and allows us to use [JSX](https://egghead.io/lessons/jsx-deep-dive) directly to generate server side views in [Express](https://egghead.io/lessons/nodejs-first-api-with-node-js-express-and-mongodb).
Watch this lesson now
Avatar
egghead.io

react-engine from Paypal eliminates the need for third-party template engines and allows us to use JSX directly to generate server side views in Express.

Avatar
Yariv

It appears that node-jsx was deprecated - https://github.com/petehunt/node-jsx
They suggest to use babel. how will it go into the mix trying to follow this tutorial?

In reply to egghead.io
Avatar
Joseph

It should be as simple as replacing node-jsx with babel.
Then use require('babel/register'); in place of require('node-jsx').install();

In reply to Yariv
Avatar
Yariv

Thanks Joseph for your quick reply :)

In reply to Joseph
HEY, QUICK QUESTION!
Joel's Head
Why are we asking?