Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}
render() {
return this.props.children;
}
}
RootRef.propTypes = {
/**
* The wrapped element.
*/
children: PropTypes.element.isRequired,
/**
* A ref that points to the first DOM node of the wrapped element.
*/
rootRef: refType.isRequired,
};
if (process.env.NODE_ENV !== 'production') {
RootRef.propTypes = exactProp(RootRef.propTypes);
}
export default RootRef;