mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-31 18:07:00 +02:00
1 line
No EOL
1,019 B
JavaScript
1 line
No EOL
1,019 B
JavaScript
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[39313],{6491:(r,e,n)=>{n.r(e),n.d(e,{default:()=>c});var s=n(62540);n(63696);var a=n(14529),t=n(99849),o=n(37425),i=n(43730);function c(){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.A,{children:"Crash outside layout"}),(0,s.jsx)(t.A,{children:(0,s.jsxs)("main",{className:"container margin-vert--xl",children:[(0,s.jsx)(o.A,{as:"h1",children:"Error boundary tests"}),(0,s.jsx)("div",{children:(0,s.jsx)(i.A,{children:"Crash inside layout"})}),(0,s.jsx)(a.A,{values:{foo:(0,s.jsx)("span",{children:"FooFoo"}),bar:(0,s.jsx)("b",{children:"BarBar"})},children:"{foo} is {bar}"})]})})]})}},43730:(r,e,n)=>{n.d(e,{A:()=>t});var s=n(62540),a=n(63696);function t({children:r="Boom!",message:e="Boom!\nSomething bad happened, but you can try again!",cause:n}){let[t,o]=(0,a.useState)(!1);if(t)throw Error(e,{cause:n?Error(n):void 0});return(0,s.jsx)("button",{className:"button button--danger",type:"button",onClick:()=>o(!0),children:r})}}}]); |