반응형
Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 | 29 | 30 | 31 |
Tags
- rate limit
- 백준 #직각삼각형
- React #Hook rules #Hook 규칙
- 코드스테이츠 #알고리즘 #그리디
- 플로이드 #c++
- 노마드 코더 #타입스크립트 #typescript #class
- React #리액트 이벤트 주기 #리액트 이벤트
- 버블링 #갭쳐링 #이벤트 #JS
- donwstream #upstream #origin
- npm #not being able to find a file #npm install Error
- React #effect hook #useEffect
- raect typescript #react #typescript #styled-component
- 이친수
- RateLimit
- #useRef #언제 쓰는데?
- 다익스트라 #파티 #백준
- React #controlled component #비제어 컴포넌트 #제어 컴포넌트
- interceptors
- JWT #토큰 #refreshToken #accessToken #Token #token #localStorage #sessionStorage
- DP #c++
- React-Query
- useState #Hooks
- react #useCallback #react Hook
- 백준 #적록색약
- Next.js
- html entities
- 빡킹독
- react fragment
- axios
- 얕은 복사 #깊은 복사 #shallow copy #deep copy
Archives
- Today
- Total
목록2023/05/06 (1)
꿈꾸는 개발자
의의 useRef는 react의 상태 변환에 따른 rendering 중에 지속적으로 참조할 수 있도록 해주는 Hook이다. 즉 useRef는 렌더링의 영향을 받지 않는다고 볼 수 있다. 일단 무슨 말인가 싶을 거지만 밑에 추가적인 설명을 보면 이해를 할 수 있을 것이다. 사용법 import { useRef } from 'react'; function MyComponent() { const intervalRef = useRef(0); const inputRef = useRef(null); // ... 공식문서에 따르면 위처럼 가장 최상단에 useRef를 선언해줄 것을 권장하고 있다. Parameters 초깃값(initialValue): Object current 프로퍼티가 담고 있었으면 하는 초기값을 지정..
React.js
2023. 5. 6. 15:12