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:
Itrulia
2025-06-27 17:13:44 +02:00
committed by GitHub
parent 0e54626bdb
commit 3e7d748827
+1 -2
View File
@@ -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.