react fontawesome
snippet in javascript

font awesome in react

user1900

$ npm i --save @fortawesome/fontawesome-svg-core  @fortawesome/free-solid-svg-icons @fortawesome/react-fontawesome

react fontawesome

user6446

npm i --save @fortawesome/fontawesome-svg-core
npm install --save @fortawesome/free-solid-svg-icons
npm install --save @fortawesome/react-fontawesome

npm install --save @fortawesome/free-brands-svg-icons
npm install --save @fortawesome/free-regular-svg-icons

font awesome react

user5843

npm install --save @fortawesome/fontawesome-free

how to use react-fontawesome

user2393

npm install --save @fortawesome/free-brands-svg-icons  npm install --save @fortawesome/free-regular-svg-icons

react font awesome

user4506

import ReactDOM from 'react-dom'import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'import { faCoffee } from '@fortawesome/free-solid-svg-icons' const element = <FontAwesomeIcon icon={faCoffee} /> ReactDOM.render(element, document.body)

how to use react-fontawesome

user7608

npm i --save @fortawesome/fontawesome-svg-core  npm install --save @fortawesome/free-solid-svg-icons  npm install --save @fortawesome/react-fontawesome