Front End/React

리액트 AwesomeFont 사용하기 ( i 태그로 사용하기 )

DevPing9_ 2021. 8. 20. 17:54

1. 많은 블로거들이 포스팅 해 놓은 방법

 

 - AwesomeFont를 객체화 해서 사용

 - 내부구조 다 공부할 수 있으면 사용하기

 - Reference) https://fontawesome.com/v5.15/how-to-use/on-the-web/using-with/react

 

Font Awesome

The world’s most popular and easiest to use icon set just got an upgrade. More icons. More styles. More Options.

fontawesome.com


2. i 태그에 class 명만 주면 사용 할 수 있는 방법 (기존방식)

- css 파일을 import 하는 거기 때문에 기존 html, javaScript 에서 하던대로 사용 가능 (클래스 이름만 주면된다)

 

728x90