យើងបានដឹងរួចមកហើយថា លទ្ធផលសំរេចនៃកម្មវិធី React អាចយកទៅប្រើនៅទីណាក៏បានដែរ មានជាឧទាហរណ៍អាចយកទៅប្រើជាមួយនឹងកម្មវិធី Node.js ក៏បានដែរ ដោយប្រើប្រាស់កញ្ចប់ Express.js ជា framework ។
const express = require('express');
const path = require('path');
const app = express();
const port = process.env.PORT || '9000';
app.use(express.static(path.join(__dirname, 'build')));
app.get('/', function (req, res) {
res.sendFile(path.join(__dirname, 'build', 'index.html'));
});
app.listen(port);
GitHub: https://github.com/Sokhavuth/react
Heroku: https://khmerweb-react.herokuapp.com/