Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Commit 358c47d

Browse files
committed
minor rebuild for docs/app.js
1 parent edfcd7d commit 358c47d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/app.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ var ButtonA11y = function ButtonA11y(_ref) {
124124
e.preventDefault();
125125
onClick(e);
126126
}
127-
}, []);
127+
}, [onClick, onKeyDown]);
128128
return react.createElement(element, _objectSpread2({}, rest, {
129129
children: children,
130130
onClick: onClick,
@@ -182,12 +182,12 @@ var App = function App() {
182182
return pressBtn1(function (x) {
183183
return !x;
184184
});
185-
}, [isBtn1Pressed]);
185+
}, []);
186186
var handleBtn2Click = (0, _react.useCallback)(function () {
187187
return pressBtn2(function (x) {
188188
return !x;
189189
});
190-
}, [isBtn2Pressed]);
190+
}, []);
191191
var btn1Label = isBtn1Pressed ? 'Pressed' : 'Press me';
192192
var btn1Class = 'btn--words'.concat(isBtn1Pressed ? ' btn--pressed' : '');
193193
var btn2Label = isBtn2Pressed ? 'Pressed' : 'Press me';

0 commit comments

Comments
 (0)