From e57b8691f7620d7c260948a028c6b19e184cd238 Mon Sep 17 00:00:00 2001
From: CHaBou Hyper is that of its underlying open
source libraries.
Your module has to expose at least one of these methods:.
+Your module has to expose at least one of these methods:
Your higher order component can supply a onDecorated
+ property to the decorated component to get a reference to its instance.
We encourage you to maintain compatibility with other decorators. - Since many can be set, don't assume that yours is the only one. - For example, if you're passing children, compose potential existing + Since many can be set, don't assume that yours is the only one.
+ +
For example, if you're passing children, compose potential existing values:
render () {
@@ -1303,6 +1317,14 @@
return <Tab {...this.props} customChildren={customChildren} />
}
+ Or if you use onDecorated property
onDecorated (term) {
+ this.term = term;
+ if (this.props.onDecorated) {
+ this.props.onDecorated(term);
+ }
+}
+