Giter VIP home page Giter VIP logo

Comments (10)

je553 avatar je553 commented on August 18, 2024 1

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!

from react-fontawesome.

danawoodman avatar danawoodman commented on August 18, 2024 1

@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

from react-fontawesome.

danawoodman avatar danawoodman commented on August 18, 2024 1

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?

from react-fontawesome.

danawoodman avatar danawoodman commented on August 18, 2024

Did you include the FontAwesome font in your project somewhere?

from react-fontawesome.

AndreasVolkmann avatar AndreasVolkmann commented on August 18, 2024

Yes I used npm i and imported it via webpack.

from react-fontawesome.

danawoodman avatar danawoodman commented on August 18, 2024

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?

from react-fontawesome.

huyle2607 avatar huyle2607 commented on August 18, 2024

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

from react-fontawesome.

wizzfizz94 avatar wizzfizz94 commented on August 18, 2024

Is this part of the readme or on the npm page anywhere? Seems like an important stepup step that isn't addressed in docs.

from react-fontawesome.

danawoodman avatar danawoodman commented on August 18, 2024

@wizzfizz94 yes, this is right below the install section of the README:

from react-fontawesome.

wizzfizz94 avatar wizzfizz94 commented on August 18, 2024

oh silly me 🤦‍♂️
Any recommended guides on configuring a local version with css and fonts locally?

from react-fontawesome.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.