PluginProbe
Tableberg – Simple Gutenberg Table Block / 1.1.5
Tableberg – Simple Gutenberg Table Block v1.1.5
1.1.5 1.1.4 1.1.3 1.1.2 1.1.1 1.1.0 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 trunk 0.0.2 0.2.1 0.3.2 0.3.3 0.4.1 0.5.0 0.5.1 0.5.2 0.5.3 0.5.4 0.5.5 0.5.6 0.5.7 All 42 releases
tableberg / admin / src / components / Portal.jsx

Portal.jsx in Tableberg – Simple Gutenberg Table Block 1.1.5, at admin/src/components/Portal.jsx

20 lines 436 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import React from "react";
2 import { createPortal } from "react-dom";
3
4 /**
5 * Portal component.
6 *
7 * @param {Object} props component properties
8 * @param {React.ElementType} props.children component children
9 * @param {Element} props.target portal parent
10 * @class
11 */
12 function Portal({ children, target }) {
13 return createPortal(children, target);
14 }
15
16 /**
17 * @module Portal
18 */
19 export default Portal;
20