MP
Size: a a a
MP
SB
MP
Р
MP
MP
Р
MP
KA
PН
withBem(cn, {}, HOC)?PН
compose? Могу ли я так указывать тип пропсов из базовой реализации?export const withFeature = <P extends unknown>(WrappedComponent: ComponentType<P>): FunctionComponent<P & IComponentBaseProps> => (props) => {
// Configure props...
return (<WrappedComponent {...props} />);
}M

yW
withBem(cn, {}, HOC)?withBemMod 🙂 просто пишешь хок и всеPН
withBemMod 🙂 просто пишешь хок и всеyW
compose? Могу ли я так указывать тип пропсов из базовой реализации?export const withFeature = <P extends unknown>(WrappedComponent: ComponentType<P>): FunctionComponent<P & IComponentBaseProps> => (props) => {
// Configure props...
return (<WrappedComponent {...props} />);
}unknown, т.к. в этом нет смыслаPН
unknown, т.к. в этом нет смыслаyW
const withF = <P>(Wrapped: ComponentType<P>): FC<P & Props> => …PН
const withF = <P>(Wrapped: ComponentType<P>): FC<P & Props> => …