All Downloads are FREE. Search and download functionalities are using the official Maven repository.

core.error.withErrorBoundary.tsx Maven / Gradle / Ivy

There is a newer version: 7.28.3
Show newest version
import React, { ComponentClass, FunctionComponentFactory } from 'react'

import { ErrorBoundary } from './Boundary'

export const withErrorBoundary = <
    TProps extends object,
>(Component: ComponentClass | (FunctionComponentFactory & { displayName?: string })) => {
    function WithErrorBoundary(props: TProps) {
        return (
            
                
            
        )
    }

    WithErrorBoundary.displayName = `WithErrorBoundary: ${Component.displayName || ''}`

    return WithErrorBoundary
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy