0.0.5 • Published 5 years ago
think-view-react v0.0.5
think-view-react
Compile view templates with React for ThinkJS 3.x
Install
npm install think-view-reactUsage
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: {},
  },
}