Open aeciolevy opened 3 years ago
Hey @aeciolevy!
Take a look here: https://stenciljs.com/docs/react#setup-of-react-component-library (pay attention at the includeDefineCustomElements
property in the stencil.config.ts
)
@zimaah I'm wondering if this can be done on a per-component basis. Currently, it's all or nothing.
I followed the https://github.com/ionic-team/stencil-ds-output-targets/tree/master/packages/react-output-target/react-component-lib wrapper so I could get react component and use it in a react project.
It does not work if I don't run the
defineCustomElements()
in the react project. That is the way it should be? Or using this wrapper I would not need to run thedefineCustomElements()
?