Open venkatesh-nagineni opened 1 month ago
The index.js
file exports all of the components. When you do your final build, only the used modules should be included in the final output. If that doesn't work, you can always import the components individually:
import { Button } from 'path/to/react/Button.js';
import { Dialog } from 'path/to/react/Dialog.js';
Instead of:
import { Button, Dialog } from 'path/to/react';
I am testing react wrapper with my stencil components where i have generated components like this
and in my stencil config have dist custom elements like
in react project, i am using only button component but when browser render all my components
does anything wrong i am doing here or it's something we need to take care
![Screenshot 2024-07-18 at 15 18 52](https://github.com/user-attachments/assets/ffaaa33c-bf33-4bce-b2d5-d29408bbe73d)