koa-react-engine
v0.0.1
Published
koa engine for react router
Downloads
4
Maintainers
Readme
koa-react-engine
koa-react-engine api
config = util._extend({
docType: "<!DOCTYPE html>",
viewPath: '',
routerPath: '',//确定是基于router的 还是直接view
jsx:{},
cache: false,
writeResp: true,
ext: 'jsx'
},config||{});
use it
var render = require('koa-react-engine');
var app = koa();
render(app,renderOption); or app.use(render(renderOption));
使用案例 react-midway-example
####bug 反馈 [email protected]