think-view-react
v0.0.5
Published
compile view templates with React for ThinkJS 3.x
Downloads
1
Readme
think-view-react
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: {},
},
}