Implement component with react

Hi,

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

<new-react-component>
  <div>some existing code in .html file
  </div>
</new-react-component>   

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?

Thanks!!

Hello,
All Kibana components are created as part of EUI, so you could check that repo for more examples on how it's done. https://github.com/elastic/eui

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