DetectErrorBoundaryFunction

Function provided by the framework-aware layers to set hasErrorBoundary from the framework-aware errorElement prop