티스토리 뷰
너무 간단해서 텍스트 쓸게 없지만..
import없이 환경변수 방법으로 가져와서 사용하면 된다!!
<img
alt="scenery 1"
src={process.env.PUBLIC_URL + "/image/first.jpg"}
/>
공식문서
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
'내가 쓸 유용한 잡지식' 카테고리의 다른 글
yarn typescript 초기 세팅 (vite❌) (0) | 2024.03.17 |
---|---|
React vite 절대경로 설정 방법 (0) | 2024.03.05 |
YouTube Api Key 만들기 (0) | 2024.02.25 |
git branch 이름 수정 (삭제) (0) | 2024.02.23 |
2024. 02. 04 git commit 메시지 작성하는 방법 (0) | 2024.02.04 |
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- readme 작성해야 하는 이유
- Warning: Each child in a list should have a unique "key" prop.
- Fetch와 Axios 의 장단점
- axios 설치하기
- simple Icon 사용방법
- styled component 조건부 사용방법
- 에러모음집
- 별점 색채우기
- 영화별점만들기
- styled component GlobalStyle 사용방법
- readme작성해보기
- readme 이미지 추가 방법
- nextjs 토큰 만료처리하기
- axios 사용하기
- 유효성검사
- axios CRUD
- Warning: validateDOMNesting(...): <li> cannot appear as a descendant of <li>
- git cache
- axios instance 작성하기
- 영화 별점
- readme 역할
- 별점만들기
- styled component 설치방법
- axiosinstance 사용 시 토큰 사용 법
- readme 작성 방법
- Warning: A component is changing an uncontrolled input to be controlled.
- styled component 사용방법
- 유효성검사 css
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
글 보관함