Can I only use several components from the react product?

1 Answer 95 Views
General Discussions
ogrish
Top achievements
Rank 1
ogrish asked on 09 May 2021, 08:41 PM

Hi,

If i only use a few react components from your product, can i only package these components in my release and not used components will not be included?

1 Answer, 1 is accepted

Sort by
0
Krissy
Telerik team
answered on 10 May 2021, 12:29 PM

Hello,

The KendoReact components support tree-shaking
https://www.telerik.com/kendo-react-ui/components/introduction/#toc-tree-shaking-and-server-side-rendering 

This means that only the relevant packages will be included in your project. Although you may be using only the Grid component, for example, all the components that are part of its dependencies will also be included, like the dateinputs package.

Hope this helps clarify.

Regards,
Krissy
Progress Telerik

Тhe web is about to get a bit better! 

The Progress Hack-For-Good Challenge has started. Learn how to enter and make the web a worthier place: https://progress-worthyweb.devpost.com.

Tags
General Discussions
Asked by
ogrish
Top achievements
Rank 1
Answers by
Krissy
Telerik team
Share this question
or