I often see that a method is called with a second pair of parentheses.
For example the connect function in redux.
connect(
mapStateToProps,
mapDispatchToProps
)(TodoItem)
Or this function from antd
const prefixSelector = getFieldDecorator('prefix', {
initialValue: '86',
})(
<Select style={{ width: 70 }}>
<Option value="86">+86</Option>
<Option value="87">+87</Option>
</Select>
);const prefixSelector = getFieldDecorator('prefix', {
initialValue: '86',
})(
<Select style={{ width: 70 }}>
<Option value="86">+86</Option>
<Option value="87">+87</Option>
</Select>
);
What happens here and how is this concept called so that i can research it further?