Skip to content

Instantly share code, notes, and snippets.

@spalger
Created January 31, 2019 14:47
Show Gist options
  • Select an option

  • Save spalger/b004091374b426ac1d0323703dae46bc to your computer and use it in GitHub Desktop.

Select an option

Save spalger/b004091374b426ac1d0323703dae46bc to your computer and use it in GitHub Desktop.
diff --git a/src/legacy/core_plugins/kibana/public/home/index.js b/src/legacy/core_plugins/kibana/public/home/index.js
index fc27e09447..f163353c8c 100644
--- a/src/legacy/core_plugins/kibana/public/home/index.js
+++ b/src/legacy/core_plugins/kibana/public/home/index.js
@@ -17,6 +17,9 @@
* under the License.
*/
+import React from 'react';
+import ReactDOM from 'react-dom';
+
import './home.less';
import chrome from 'ui/chrome';
import routes from 'ui/routes';
@@ -48,7 +51,11 @@ function getRoute() {
},
k7Breadcrumbs: () => [
{ text: homeTitle },
- ]
+ ],
+ helpExtension(domElement) {
+ ReactDOM.render(<div>hello world</div>, domElement);
+ return () => ReactDOM.unmountComponentAtNode(domElement);
+ }
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment