1npm i --save @fortawesome/fontawesome-svg-core
2npm install --save @fortawesome/free-solid-svg-icons
3npm install --save @fortawesome/react-fontawesome
4
5npm install --save @fortawesome/free-brands-svg-icons
6npm install --save @fortawesome/free-regular-svg-icons
1import ReactDOM from 'react-dom'
2import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
3import { faCoffee } from '@fortawesome/free-solid-svg-icons'
4
5const element = <FontAwesomeIcon icon={faCoffee} />
6
7ReactDOM.render(element, document.body)
1yarn add @fortawesome/fontawesome-svg-core
2yarn add @fortawesome/free-solid-svg-icons
3yarn add @fortawesome/react-fontawesome
1npm i --save @fortawesome/fontawesome-svg-core
2npm install --save @fortawesome/free-solid-svg-icons
3npm install --save @fortawesome/react-fontawesome
4yarn add @fortawesome/fontawesome-svg-core
5yarn add @fortawesome/free-solid-svg-icons
6yarn add @fortawesome/react-fontawesome
1npm i --save @fortawesome/fontawesome-svg-core @fortawesome/free-solid-svg-icons @fortawesome/react-fontawesome @fortawesome/free-brands-svg-icons @fortawesome/free-regular-svg-icons