File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 55 createElement ,
66 createContext ,
77 createRef ,
8+ forwardRef ,
89 Component ,
910 cloneElement ,
1011 Children ,
@@ -51,6 +52,19 @@ export { createElement };
5152 */
5253export { createRef } ;
5354
55+ /**
56+ * Component enhancer used to enable passing a ref to its wrapped component.
57+ * Pass a function argument which receives `props` and `ref` as its arguments,
58+ * returning an element using the forwarded ref. The return value is a new
59+ * component which forwards its ref.
60+ *
61+ * @param {Function } forwarder Function passed `props` and `ref`, expected to
62+ * return an element.
63+ *
64+ * @return {WPComponent } Enhanced component.
65+ */
66+ export { forwardRef } ;
67+
5468/**
5569 * Renders a given element into the target DOM node.
5670 *
You can’t perform that action at this time.
0 commit comments