SuspenseBoundary

Function SuspenseBoundary 

Source
pub fn SuspenseBoundary(__props: SuspenseBoundaryProps) -> Element
Expand description

Suspense Boundaries let you render a fallback UI while a child component is suspended.

ยงExample

fn App() -> Element {
    rsx! {
        SuspenseBoundary {
            fallback: |_| rsx! { "Loading..." },
            Article {}
        }
    }
}