mirror of
https://github.com/facebook/react.git
synced 2026-02-26 07:15:09 +00:00
12 lines
210 B
JavaScript
12 lines
210 B
JavaScript
// @gating
|
|
const ErrorView = (error, _retry) => <MessageBox error={error}></MessageBox>;
|
|
|
|
const Renderer = (props) => (
|
|
<Foo>
|
|
<Bar></Bar>
|
|
<ErrorView></ErrorView>
|
|
</Foo>
|
|
);
|
|
|
|
export default Renderer;
|