文件名称:express-react-router-views:具有react react-dom和react-router的同构渲染
文件大小:9KB
文件格式:ZIP
更新时间:2024-05-29 01:57:16
JavaScript
#express-react-router-views 它是什么? 快速js的React渲染引擎 使用react-router渲染后端和前端视图 安装 npm install express-react-router-views react react-dom react-router history express --save 服务器端的用法 var express = require('express'); var ExpressReactRouter = require('express-react-router-views'); var routes = require('./routes'); // This are react-router routes, check the example of a routes file below var app = express
【文件预览】:
express-react-router-views-master
----.jshintrc(626B)
----lib()
--------client.js(1KB)
--------engine.js(2KB)
--------view.js(384B)
----example()
--------public()
--------components()
--------routes.js(456B)
--------express()
----README.md(3KB)
----.gitignore(13B)
----index.js(136B)
----package.json(725B)