M
M
m_frost2019-05-17 21:30:02
React
m_frost, 2019-05-17 21:30:02

How to use icon fonts in react ???

The react project needs 5 icons , I would like to hear your opinion in order to form ideas about this or that connection method in the future, here are the options
:
they work in react or not.
- it's a shame to pull the whole pack because of 5 icons and I don't know how they affect the size of the bundle (write who knows)
2. inline svg:
+ like norms
- pseudo-elements will not
work 3. create a mini pack with icomoon.io/
+ only icons are needed
+ it seems to be possible to use it in pseudo -elements
- I don’t know how to connect it correctly (connecting to the header via a link seems to be rude)
I will be glad to your options, any comments and links to some useful materials

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question