Closed AndreasVolkmann closed 7 years ago
Did you include the FontAwesome font in your project somewhere?
Yes I used npm i and imported it via webpack.
If you inspect it in the browser what do you see? Can you look in developers tools and see the assets loading for the FontAwesome fonts?
I had this same issue, but after adding a <link />
to the fontawesome stylesheet to my main html app container, it worked fine. Let me know if this works for you!
@je553 yeah, this React component does not include the CSS or fonts so that is to be expected 😄
Closing as I assume that was the issue
I just tried and all you need to do is to include the FontAwesome stylesheet into your index.html file. Thanks for your help @je553
Is this part of the readme or on the npm page anywhere? Seems like an important stepup step that isn't addressed in docs.
@wizzfizz94 yes, this is right below the install section of the README:
oh silly me :man_facepalming: Any recommended guides on configuring a local version with css and fonts locally?
If you’re using Font Awesome 5, you should use the official React component.
If you’re using WebPack, please check the readme under setup.
If you’re using something else, what would that be?
Hi I just tried this out and couldn't make it work.
I used the following code:
This is what gets rendered:
Am I missing something? No Icon shows up.