silverwolf-x's picture
download
raw
336 Bytes
const isDevTest = false
const DynamicImportComponent = () => {
if (isDevTest && typeof window === 'undefined') {
throw new Error('This component should only be rendered on the client side')
}
return (
<div id="dynamic-component">This is a dynamically imported component</div>
)
}
export default DynamicImportComponent

Xet Storage Details

Size:
336 Bytes
·
Xet hash:
d0f4a1c482da39adc05cb13bcb56eb5344e2668aec3942815c7327495327505a

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.