From 98bc178a363132975501356373a216e2885a7f30 Mon Sep 17 00:00:00 2001 From: Minwei Xu Date: Thu, 4 Apr 2019 12:51:14 -0400 Subject: [PATCH] update mapPropsToFields demo --- components/form/demo/global-state.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/form/demo/global-state.md b/components/form/demo/global-state.md index e000d767ca..a722ad6d37 100644 --- a/components/form/demo/global-state.md +++ b/components/form/demo/global-state.md @@ -17,6 +17,8 @@ We can store form data into upper component or [Redux](https://github.com/reactj **Note:** You must wrap field data with `Form.createFormField` in `mapPropsToFields`. +**Note:** Here, errors are passed to higher order component in `onFieldsChange` and passed back in `mapPropsToFields`. + ````jsx import { Form, Input } from 'antd';