yeps-views-react

1.0.1 • Public • Published

YEPS Views React

YEPS React Template rendering

NPM

npm version Build Status Coverage Status Linux Build Windows Build

Dependency Status devDependency Status NSP Status

License GitHub stars GitHub forks GitHub issues Twitter

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

Package Sidebar

Install

npm i yeps-views-react

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • evheniy.bystrov