Juntao Qiu
Mar 15, 2024

--

Yeah, that where you wrap the component with the Error boundary and Suspense boundary:

```

function App() {

return (

<ErrorBoundary fallback={<div>Error</div>}>

<Suspense fallback={<div>Loading</div>}>

<Quotes />

</Suspense>

</ErrorBoundary>

);

}

```

--

--

Juntao Qiu
Juntao Qiu

Written by Juntao Qiu

I help developers write better code. Developer | Author | Creator. https://juntao.substack.com/ @JuntaoQiu

No responses yet