Simple example of running Nano JSX in Node.js on ExpressJS.
# clone
npx gitget nanojsx/node-jsx-example
# change directory
cd node-jsx-example
# install
npm install
# run
npm start
# open
http://127.0.0.1:3000/
This example uses plain JavaScript (not TypeScript).
But it uses the TypeScript compiler to transform .jsx
into .js
.
Want to use TypeScript instead? Simple rename your .jsx
files to .tsx
.