mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-03 16:59:06 +02:00
29 lines
794 B
TypeScript
29 lines
794 B
TypeScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
import React from 'react';
|
|
import Layout from '@theme/Layout';
|
|
|
|
import ErrorBoundaryTestButton from '@site/src/components/ErrorBoundaryTestButton';
|
|
|
|
export default function ErrorBoundaryTests(): JSX.Element {
|
|
return (
|
|
<>
|
|
<ErrorBoundaryTestButton>Crash outside layout</ErrorBoundaryTestButton>
|
|
<Layout>
|
|
<main className="container margin-vert--xl">
|
|
<h1>Error boundary tests</h1>
|
|
<div>
|
|
<ErrorBoundaryTestButton>
|
|
Crash inside layout
|
|
</ErrorBoundaryTestButton>
|
|
</div>
|
|
</main>
|
|
</Layout>
|
|
</>
|
|
);
|
|
}
|