diff --git a/website/index.html b/website/index.html
index 4582508c..82128f50 100644
--- a/website/index.html
+++ b/website/index.html
@@ -833,7 +833,7 @@
extend 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);
+ }
+}
+