mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-11-14 13:58:21 +00:00
docs(site): small changes for DynamicIcon (#3355)
* docs(lucide-react): small changes for DynamicIcon Changed the sentence structure slightly for DynamicIcon to be easier to understand. * Update lucide-react.md
This commit is contained in:
@@ -87,8 +87,7 @@ const App = () => (
|
||||
|
||||
## Dynamic Icon Component
|
||||
|
||||
It is possible to create one generic icon component to load icons, but it is not recommended.
|
||||
Since it is importing all icons during build. This increases build time and the different modules it will create.
|
||||
It is possible to create one generic icon component to load icons. But it is not recommended, since it is importing all icons during the build. This increases build time and the different modules it will create.
|
||||
|
||||
`DynamicIcon` is useful for applications that want to show icons dynamically by icon name. For example, when using a content management system with where icon names are stored in a database.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user