svg 로고 깔끔하게 집어넣는 방법

리린·2021년 8월 24일
0

React

목록 보기
20/47

참고서: https://create-react-app.dev/docs/adding-images-fonts-and-files/

다음과 같이 집어넣는다

import { ReactComponent as Logo } from './logo.svg';

function App() {
  return (
    <div>
      {/* Logo is an actual React component */}
      <Logo />
    </div>
  );
}
profile
개발자지망생

0개의 댓글