docusaurus/website/_dogfooding/_pages tests/error-boundary-tests.tsx
Joshua Chen e0127c66be
chore(website): enable eslint in website (#5889)
* chore: enable eslint in website

* Fixes

* prettier users
2021-11-06 19:04:45 +08:00

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>
</>
);
}