There's something wrong with the HOC that wrote a React.

HOC function:
accepts Input | TextArea and other input components in the antd component, and injects the debounce method in lodash into the onchange event. The
code is as follows:

import {Input} from "antd";

HOC(<Input />)
Mar.03,2021

the < Input / > is React Element rather than class , so the caller can write HOC (Input) directly

.

second question, what you get in HOC is class instead of React Element , while the component data is relative to React Element , so the answer is not available

.
Menu