Having hard time understanding a piece of code #1018
-
Hi guys, fairly being new to react, I was just going through the code and I am having hard time understanding something. The issue is that inside
now upon going to |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
This component returns a Form.Item, which appears to be part of a larger form. This Form.Item renders an AutoCompleteAsync component inside it.
To determine exactly how value and onChange are being handled in the AutoCompleteAsync component, you'll need to find out more about its implementation. You can check if it's using any of the above techniques to access these props. |
Beta Was this translation helpful? Give feedback.
-
In the AutoCompleteAsync Component, the props are effectively destructured and i have a few suggestions as explanation :
|
Beta Was this translation helpful? Give feedback.
-
This is needed when we create custom input behavior , required by AntD , this will be passed auto by Form.Item . we need this just for update when we fill input when we try to update form |
Beta Was this translation helpful? Give feedback.
@ratnabh
This is needed when we create custom input behavior , required by AntD , this will be passed auto by Form.Item .
we need this just for update when we fill input when we try to update form