Skip to main content
Layer’s React components expose error callbacks to notify you of errors that occur within the embedded components. Use the onError property on <LayerProvider> to get notified about all exceptions within the components:
This can be done both on the top level <LayerProvider> component and within specific components.