Answer the question
In order to leave comments, you need to log in
How to optimize font loading in react?
There is a project on react, less is used as a css preprocessor. Fonts are included in a separate .less file:
@font-face {
font-family: 'Roboto-Bold';
src: url('../fonts/Roboto-Bold.woff') format('woff');
font-weight: normal;
font-style: normal;
}
@import "fonts";
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question