👀 Check out the changes in Suspensive v2 read more →
Documentation
@suspensive/react
<SuspensiveProvider/>

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>
}