Front End
-
리액트 AwesomeFont 사용하기 ( i 태그로 사용하기 )Front End/React 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 에서 하던대로 사용 가능..
-
[React] 맥북에서 React App 깃허브(git)에 Deploy 하기 (feat. git에 개인 홈페이지만들기)Front End/React 2021. 8. 16. 18:50
1. 콘솔창에 npm install gh-pages@2.0.1 - 최신버전 gh-pages 설치시 deploy 오류가 생기는 경우가 있음 - Reference) https://stackoverflow.com/questions/57308851/receive-error-when-deploy-to-github-pages - 이미 gh-pages 를 실행(빌드)하여 cache 파일로 인한 오류가 있을 수 있음 - Reference) https://dryadsoft.tistory.com/16 2. package.json 파일에 'homepage' 객체 추가 - value 값에 https://{UserName}.github.io/{ProjectName} 추가 3. package.json 파일 scripts 객체에 ..