const Login = ({
login,
dispatch,
loading,
form: {
validateFields,
getFieldDecorator,
setFieldsValue,
setFields
}
}) => {
console.log(loading)
return (
<div>login</div>
);
};
Login.propTypes = {
login: PropTypes.object,
dispatch: PropTypes.func,
loading: PropTypes.object
};
export default connect(({ login,loading }) => ({ login,loading }))(Form.create()(Login));
Why is the result printed out by writing loading like this: