GoScrobble/web/node_modules/react-bootstrap/esm/triggerBrowserReflow.js

6 lines
251 B
JavaScript

// reading a dimension prop will cause the browser to recalculate,
// which will let our animations work
export default function triggerBrowserReflow(node) {
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
node.offsetHeight;
}