think-view-react

0.0.5 • Public • Published

think-view-react

npm

Compile view templates with React for ThinkJS 3.x

Install

npm install think-view-react

Usage

edit config file src/config/adapter.js, add options for react adapter:

const react = require('think-view-react');

exports.view = {
  type: 'react',
  common: {
    viewPath: path.join(think.ROOT_PATH, 'view'),
    sep: '_',
    globalVarName: 'G',
    extname: '.html',
  },
  react: {
    handle: react,
    options: {},
  },
}

Readme

Keywords

Package Sidebar

Install

npm i think-view-react

Weekly Downloads

2

Version

0.0.5

License

ISC

Unpacked Size

2.73 kB

Total Files

4

Last publish

Collaborators

  • kunkkaliu