use arrow function

This commit is contained in:
afc163 2016-06-07 16:16:34 +08:00
parent 250df0f4e3
commit 57ab8dfdfe

View File

@ -11,9 +11,7 @@ import { Table } from 'antd';
const columns = [{
title: '姓名',
dataIndex: 'name',
render(text) {
return <a href="#">{text}</a>;
},
render: text => <a href="#">{text}</a>,
}, {
title: '年龄',
dataIndex: 'age',