Coder Social home page Coder Social logo

Comments (6)

freereikicourse avatar freereikicourse commented on May 19, 2024 2

The readme could have some simple steps:

  • Install font-awesome with this command...
  • Import the css with this: import 'font-awesome/css/font-awesome.css';

from react-fontawesome.

danawoodman avatar danawoodman commented on May 19, 2024 1

@atulS7inc can you check the "Network" tab in Chrome DevTools and make sure the fonts are being loaded for FontAwesome? You may not have the paths in your CSS pointing to the fonts correctly. Reopen if it's still an issue!

from react-fontawesome.

jseminck avatar jseminck commented on May 19, 2024 1

I ran into the same issue. The "problem" for me was that on the npm website, this is the first thing that I read:

Features
No dependencies (other than React)

I assumed that because of no other dependencies, I also did not have to include font-awesome in one way or another... of course, below the list it does mention the following... but it was easy to read over this. 😄

Note: This component does not include any of the Font Awesome CSS or fonts, so you'll need to make sure to include those on your end somehow, either by adding them to your build process or linking to CDN versions.

from react-fontawesome.

danawoodman avatar danawoodman commented on May 19, 2024

@jseminck a PR to make the readme more clear is welcome 😇

from react-fontawesome.

freereikicourse avatar freereikicourse commented on May 19, 2024

+1 Second time installing and still need to google how to make this thing work... ughhh frustrating

from react-fontawesome.

danawoodman avatar danawoodman commented on May 19, 2024

@freereikicourse that is assuming someone is using WebPack and misses some steps (CSS loader, etc). I've updated readme to have info on the CDN version and to link to a blog post on how to get FontAwesome working with WebPack. Hopefully this helps.

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.