Sha256: 6a2b346218279e76240c992ef3c582dbb4da9be80ff4b1b4ba1d3706d00b56da
Contents?: true
Size: 1.94 KB
Versions: 10
Compression:
Stored size: 1.94 KB
Contents
(this["webpackJsonpfactory_burgers-ui"]=this["webpackJsonpfactory_burgers-ui"]||[]).push([[0],{11:function(t,e,n){},12:function(t,e,n){},13:function(t,e,n){},16:function(t,e,n){"use strict";n.r(e);var c=n(1),r=n.n(c),i=n(5),u=n.n(i),o=(n(11),n(12),n(13),n(0));var s=function(){return Object(o.jsx)("div",{children:"86 on that ... something went wrong."})};var a=function(){return Object(o.jsx)("div",{children:"Coming right up..."})};function j(){return fetch("./data").then((function(t){return t.json()}))}var f=n(4),h=n.n(f),b=n(6),l=n(2);var d=function(){var t=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=Object(c.useState)(null),r=Object(l.a)(n,2),i=r[0],u=r[1],o=Object(c.useState)(0===e.length),s=Object(l.a)(o,2),a=s[0],j=s[1],f=Object(c.useState)(null),d=Object(l.a)(f,2),O=d[0],p=d[1];function g(){return v.apply(this,arguments)}function v(){return(v=Object(b.a)(h.a.mark((function e(){return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t());case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function x(){j(!1)}return Object(c.useEffect)((function(){j(!0),g().then(p).catch(u).then(x)}),e),Object(c.useMemo)((function(){return{error:i,fetching:a,response:O}}),[i,a,O])}(j);return Object(c.useEffect)((function(){console.log(t)}),[t]),Object(o.jsxs)("div",{className:"App",children:[Object(o.jsx)("header",{children:Object(o.jsx)("div",{class:"header-text",children:"testing"})}),Object(o.jsxs)("main",{children:[t.fetching&&Object(o.jsx)(a,{}),t.error&&Object(o.jsx)(s,{}),t.response&&Object(o.jsx)("p",{children:"Hello, world."})]})]})},O=function(t){t&&t instanceof Function&&n.e(3).then(n.bind(null,17)).then((function(e){var n=e.getCLS,c=e.getFID,r=e.getFCP,i=e.getLCP,u=e.getTTFB;n(t),c(t),r(t),i(t),u(t)}))};u.a.render(Object(o.jsx)(r.a.StrictMode,{children:Object(o.jsx)(d,{})}),document.getElementById("root")),O()}},[[16,1,2]]]); //# sourceMappingURL=main.f3fd366c.chunk.js.map
Version data entries
10 entries across 10 versions & 1 rubygems