I have React app. I have bundle.js
and index.html
with scripts and a root element. How I can send it from the server?
I have a Koa.js server
const Koa = require('koa');
const app = new Koa();
app.use(async ctx => {
ctx.body = 'Hello World';
});
app.listen(3000);
Can I send index.html
as a static file, or does react have another way?