yeps-views-react
v1.0.1
Published
YEPS React Views
Downloads
2
Maintainers
Readme
YEPS Views React
YEPS React Template rendering
How to install
npm i -S yeps-views-react
How to use
views/index.jsx
import React from 'react';
export default props => <h1>{props.text}</h1>;
app.js
const App = require('yeps');
const views = require('yeps-views-react');
const app = new App();
app.all([
views(__dirname + '/views');
]);
app.then(async ctx => {
return ctx.render('index.jsx', { text: 'Hello!' });
});
Links
- yeps - YEPS
- yeps-promisify - YEPS kernel
- yeps-benchmark - performance comparison koa2, express and node http
- yeps-router - YEPS promise based router
- yeps-error - YEPS 404/500 error handler
- yeps-redis - YEPS promise based redis client
- yeps-mysql - YEPS promise based mysql client
- yeps-boilerplate - YEPS app boilerplate
- yeps-express-wrapper - YEPS express wrapper
- yeps-cors - YEPS CORS
- yeps-bodyparser - YEPS body parser
- yeps-views - YEPS Template
- yeps-method-override - YEPS method override