【发布时间】:2021-02-14 20:55:24
【问题描述】:
如何保存和写入 ScrollToFirstErrorHOC 组件的 Ref?
export function withScrollToFirstError(Component: t.form.Component): React.ComponentType {
class ScrollToFirstErrorHOC extends PureComponent<OuterProps & PropsFromState> {
constructor(props: PropsFromState) {
super(props);
}
public render() {
return <Component {...this.props} />;
}
}
【问题讨论】: