silverwolf-x's picture
download
raw
327 Bytes
import React, { useEffect, useState } from 'react'
export function RedButtonLazy() {
const [Component, setComponent] = useState<React.ComponentType | null>(null)
useEffect(() => {
import('./red-button').then((module) =>
setComponent(() => module.RedButton)
)
}, [])
return Component && <Component />
}

Xet Storage Details

Size:
327 Bytes
·
Xet hash:
109ee24654490ec97cd59d48a692b27bce3f71a7a0455a2892eea6ff2fed18a5

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