A
A
Andrey Okhotnikov2018-09-26 11:58:34
JavaScript
Andrey Okhotnikov, 2018-09-26 11:58:34

How to include far icon from Fontawesome in React?

There is an icon
I want to connect it in React via

import { faFile } from '@fortawesome/free-solid-svg-icons';
...
<FontAwesomeIcon icon={faFile} />

But in this case, this icon (solid) is connected.
How to properly import "far fa-file" ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Alexandrovich, 2018-09-26
@tsepen

https://www.npmjs.com/package/@fortawesome/free-re...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question