UNPKG

@pmmmwh/react-refresh-webpack-plugin

Version:

An **EXPERIMENTAL** Webpack plugin to enable "Fast Refresh" (also previously known as _Hot Reloading_) for React components.

20 lines (17 loc) 420 B
/** * @typedef {Object} SpacerProps * @property {string} space */ /** * An empty element to add spacing manually. * @param {Document} document * @param {HTMLElement} root * @param {SpacerProps} props * @returns {void} */ function Spacer(document, root, props) { const spacer = document.createElement('div'); spacer.style.paddingBottom = props.space; root.appendChild(spacer); } module.exports = Spacer;