Relative Content

Tag Archive for reactjsantd

Why does my component never get the property value that I’m setting?

I have a react component and a convenience function for printing it down wrapped in an ant design <Col> and <Form.Item> for easy use in form building, but no matter what gets passed for the “value” property on the <YesNoColumn>, it always renders as if it were passed true. Chatgpt just suggested the useEffect addition, but that didn’t fix anything.