ВД
<Parent>
<button ref={btnRef}>Кнопка</button>
<Child refEl={btnRef}>
</Parent>
// Child обрабатывает параметры, полученные из парсинга btnRef
Проблема вся в том, что я не могу парсить null, как можно исправить проблему?
Size: a a a
ВД
V
ВД
V
ВД
ВД
V
ВД
V
V
V
V
const WrappedComponent = React.forwardRef((props, ref) => {
return <LogProps {...props} forwardedRef={ref} />;
});
V
const WrappedComponent = React.forwardRef(
function myFunction(props, ref) {
return <LogProps {...props} forwardedRef={ref} />;
}
);
ВД
V
ВД
const WrappedComponent = React.forwardRef(
function myFunction(props, ref) {
return <LogProps {...props} forwardedRef={ref} />;
}
);