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