SuspensiveProvider
This component controls the settings of the components provided by Suspensive (Suspense, Delay, etc.) at once.
import { Suspensive, SuspensiveProvider } from '@suspensive/react'
const suspensive = new Suspensive({
defaultProps: {
delay: {
ms: 1200,
},
suspense: {
fallback: <Spinner />,
clientOnly: false,
},
},
})
function App() {
return <SuspensiveProvider value={suspensive}>...</SuspensiveProvider>
}