React-JSX-filter
Example
// <div>React</div>
<div>{ 'react' | capitalize }</div>
// <div>Hello world!</div>
<div>{ 'hello' | capitalize | concat(' ', 'world!') }</div>
// <div>你好</div>
<div>{ 'hello' | translate('zh-cn') }</div>
// with lodash
<div>{ this.state.data | _.filter({ 'active': true }) | this.renderTable }</div>
result: Hello world!
Issue
[x] todo support TypeScript
Configure
Babel babel-plugin-transform-react-jsx-filter
Eslint eslint-config-react-jsx-filter
umi.js Configure