using library in a component can be re-use in another component?
See original GitHub issueSo i currently use library to import icons in an individual component like this:
import { library } from "@fortawesome/fontawesome-svg-core";
import {
faPen,
faPlus,
faSearch
} from "@fortawesome/pro-regular-svg-icons";
library.add(faPen, faPlus, faSearch);
And while creating another component which does not related to the one above, i still can use the icons which has been imported previously without import them again. Is this right or i am doing it wrong?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Shared Component Library: Share Reusable Components
Here is a short tutorial to how you can use Bit to share the components from your library into your own playlist-like collection...
Read more >How to Easily Reuse Components Across Projects ... - ITNEXT
How to reuse components across projects and repositories. ... Using Bit, each component in any reposiotry (and library) can be tracked as a ......
Read more >Reuse Components Across PowerApps With A ... - Bulb Digital
You should create the components directly in the component library when you want to use them across apps.
Read more >Reusing and sharing React components across applications
In this tutorial, you will learn the best way to create and share reusable components that you can instantly use and easily manage...
Read more >Make A Power Apps Component Library To Share And Reuse ...
Available To Use In Other Apps – Any component in a component library can used in other apps whereas a component stored inside...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@kawazoe yep, exactly.
@robmadole
I just tried to call it twice. First time in my nuxt plugin where I register the
FontAwesomeIcon
component and a second time in a component which receives data form a CMS with icons names. I would like to add icons in this component to the existing library.The result is the added icons won’t appear and I get following error:
➡️ But when logging the library I see that they actually got added. Do you have any insights why this is happening and an idea how that could work?
It would make it easier for us adding icons just in our CMS and with a fresh build it would do it automatically for the frontend too.