class FunctionArea extends React.Component { constructor(props) { super(props); this.state = { }; } render(){ const type = this.props.type; const contract = this.props.contract; const contractName = this.props.contractName; return { this.props.contract.options.jsonInterface .filter(item => item.type == type) .map((item, i) => ) } ; } }