컴포넌트 임포트
import { ReactComponent as SearchIcon } from '../icon/search_icon.svg';
svg파일
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 19 20">
<g
fill= 'none'
stroke= '#000'
stroke-linecap= 'round'
stroke-miterlimit= '10'
stroke-width= '1.5px'>
<circle class="cls-1" cx="9.67" cy="4.87" r="3.87"/>
<path class="cls-1" d="M1.35,19.6V17.89a6.46,6.46,0,0,1,6.46-6.46h4.42a6.46,6.46,0,0,1,6.46,6.46V19.6" transform="translate(-0.35 -0.13)"/>
</g>
</svg>
<ChatIcon stroke='#868E96'></ChatIcon>
https://ichi.pro/ko/react-aeb-mich-svg-saengseong-123794023192050
npm install file-loader --save-dev
https://blog.naver.com/PostView.naver?blogId=handam81&logNo=222525190332&parentCategoryNo=&categoryNo=&viewDate=&isShowPopularPosts=false&from=postView
https://runchi.dev/react/react-svg/
https://gaemi606.tistory.com/entry/React-SVG-%EC%82%AC%EC%9A%A9
<svg
height='current'
width='current'
fill="current"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
version="1.1"
x="0px" y="0px"
viewBox="0 0 60 60"
style="enable-background:new 0 0 60 60;"
xml:space="preserve"
>
<path d="..."></path>
</svg>
import { ReactComponent as HeartImg } from "../images/heart.svg";
<HeartImg width="30" height="30" fill="#FF6666" />