몽땅뚝딱 개발자

[React] process.env.public_url 사용하기 (작성 중) 본문

Development/React.js · Next.js

[React] process.env.public_url 사용하기 (작성 중)

레오나르도 다빈츠 2022. 9. 2. 08:49

 

 

render() {
  return <img src={process.env.PUBLIC_URL + '/img/logo.png'} />;
}

 

https://create-react-app.dev/docs/using-the-public-folder/

 

Using the Public Folder | Create React App

Note: this feature is available with react-scripts@0.5.0 and higher.

create-react-app.dev

 

Comments