0.0.5 • Published 3 years ago

think-view-react v0.0.5

Weekly downloads
72
License
ISC
Repository
github
Last release
3 years ago

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: {},
  },
}
0.0.5

3 years ago

0.0.3

3 years ago

0.0.4

3 years ago

0.0.2

4 years ago

0.0.1

4 years ago