import * as React from 'react'; export default function defer
(Component: React.ComponentType
) {
function Defer(props: P) {
const [mounted, setMounted] = React.useState(false);
React.useEffect(() => {
setMounted(true);
}, []);
return