ionic-team / stencil-ds-output-targets

These are output targets that can be added to Stencil for React and Angular.
https://stenciljs.com
MIT License
244 stars 108 forks source link

Question: To use the react-output component do I need to use defineCustomElements(); #137

Open aeciolevy opened 3 years ago

aeciolevy commented 3 years ago

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 the defineCustomElements()?

zimaah commented 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)

R-Bower commented 1 year ago

@zimaah I'm wondering if this can be done on a per-component basis. Currently, it's all or nothing.