Implement component with react


I am trying to create a component in Kibana using React. Like below.

  <div>some existing code in .html file

The new-react-component is a react component. And I did use something like reactDirective(wrapInI18nContext(NewReactComponent)). But it looks like children elements was not filled to props.children.
Am I doing the correct way? How can I pass the nested children to the components?


All Kibana components are created as part of EUI, so you could check that repo for more examples on how it's done.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.