// <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!
[x] todo support TypeScript
Babel babel-plugin-transform-react-jsx-filter
Eslint eslint-config-react-jsx-filter
umi.js Configure