Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
`Found %o prop type %s`,
propTypesErrors.length,
"error" + (propTypesErrors.length > 1 ? "s" : ""),
)
throw new PropTypesError(propTypesErrors)
}
if (Component.getAsyncProps && typeof Component.getAsyncProps === "function") {
const asyncProps = await Component.getAsyncProps(props)
props = {
...props,
...asyncProps,
}
}
return ReactPDF.renderToStream()
}
const renderReact = async (component, data) => {
const rootElemComponent = React.createElement(component, data);
return ReactPDF.renderToStream(rootElemComponent);
};