Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
!(function(e) {
function t(t) {
for (var n, l, i = t[0], a = t[1], f = t[2], d = 0, p = []; d < i.length; d++)
(l = i[d]), u[l] && p.push(u[l][0]), (u[l] = 0);
for (n in a) Object.prototype.hasOwnProperty.call(a, n) && (e[n] = a[n]);
for (c && c(t); p.length; ) p.shift()();
return o.push.apply(o, f || []), r();
}
function r() {
for (var e, t = 0; t < o.length; t++) {
for (var r = o[t], n = !0, i = 1; i < r.length; i++) {
var a = r[i];
0 !== u[a] && (n = !1);
}
n && (o.splice(t--, 1), (e = l((l.s = r[0]))));
}
return e;
}
var n = {},
u = { 1: 0 },
o = [];
function l(t) {
if (n[t]) return n[t].exports;
var r = (n[t] = { i: t, l: !1, exports: {} });
return e[t].call(r.exports, r, r.exports, l), (r.l = !0), r.exports;
}
(l.m = e),
(l.c = n),
(l.d = function(e, t, r) {
l.o(e, t) || Object.defineProperty(e, t, { enumerable: !0, get: r });
}),
(l.r = function(e) {
'undefined' != typeof Symbol &&
Symbol.toStringTag &&
Object.defineProperty(e, Symbol.toStringTag, { value: 'Module' }),
Object.defineProperty(e, '__esModule', { value: !0 });
}),
(l.t = function(e, t) {
if ((1 & t && (e = l(e)), 8 & t)) return e;
if (4 & t && 'object' == typeof e && e && e.__esModule) return e;
var r = Object.create(null);
if ((l.r(r), Object.defineProperty(r, 'default', { enumerable: !0, value: e }), 2 & t && 'string' != typeof e))
for (var n in e)
l.d(
r,
n,
function(t) {
return e[t];
}.bind(null, n)
);
return r;
}),
(l.n = function(e) {
var t =
e && e.__esModule
? function() {
return e.default;
}
: function() {
return e;
};
return l.d(t, 'a', t), t;
}),
(l.o = function(e, t) {
return Object.prototype.hasOwnProperty.call(e, t);
}),
(l.p = '');
var i = (window.webpackJsonp = window.webpackJsonp || []),
a = i.push.bind(i);
(i.push = t), (i = i.slice());
for (var f = 0; f < i.length; f++) t(i[f]);
var c = a;
o.push([0, 0]), r();
})({
'/fLz': function(e, t, r) {
'use strict';
var n = (function() {
return function(e, t) {
if (Array.isArray(e)) return e;
if (Symbol.iterator in Object(e))
return (function(e, t) {
var r = [],
n = !0,
u = !1,
o = void 0;
try {
for (
var l, i = e[Symbol.iterator]();
!(n = (l = i.next()).done) && (r.push(l.value), !t || r.length !== t);
n = !0
);
} catch (e) {
(u = !0), (o = e);
} finally {
try {
!n && i.return && i.return();
} finally {
if (u) throw o;
}
}
return r;
})(e, t);
throw new TypeError('Invalid attempt to destructure non-iterable instance');
};
})(),
u = r('q1tI'),
o = l(u);
function l(e) {
return e && e.__esModule ? e : { default: e };
}
l(r('i8i4')).default.render(
o.default.createElement(function() {
var e = (function() {
var e = (0, u.useState)(0),
t = n(e, 2),
r = t[0],
o = t[1];
return [
r,
function() {
return o(r + 1);
},
function() {
return o(r - 1);
},
];
})(),
t = n(e, 3),
r = t[0],
l = t[1],
i = t[2];
return o.default.createElement(
'div',
null,
o.default.createElement('div', null, 'Current count: ', r),
o.default.createElement(
'div',
null,
o.default.createElement('button', { onClick: i }, '-'),
o.default.createElement('button', { onClick: l }, '+')
)
);
}, null),
document.getElementById('root')
);
},
0: function(e, t, r) {
e.exports = r('/fLz');
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment