freeCodeCamp / ui

freeCodeCamp's UI Component Library
BSD 3-Clause "New" or "Revised" License
12 stars 13 forks source link

Handle the bucket file in components library #24

Open Sboonny opened 9 months ago

Sboonny commented 9 months ago

This is part of best practices and UI components rework, when the UI component is moved to its own library.


Creating a file that store the components export is fine in /learn, because of bundlers handling tree shaking.

Bundlers can't do tree shaking with external libraries, it doesn't apply in runtime.

There are multiple ways to handle them:

namrata18s commented 9 months ago

can I work on this issue?