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 |
Tags
- 우테코
- Shadow DOM
- 우아한테크코스
- 유한 상태 머신
- docker-compose
- browserslist
- RTL8852BE
- AX210
- Prometheus
- CSS
- 무선랜카드 교체
- custom element
- Docker
- 터치 스와이프
- javascript
- react-dom
- webpack
- Grafana
- 우아한테크코스 레벨3
- web component
- GitHub Pages
- 데모데이
- fastify
- scroll-snap
- github Actions
- swiper
- HTML
- react
- typescript
- live share
Archives
- Today
- Total
목록context (1)
IT일상

리뉴얼 된 블로그로 보기: https://solo5star.dev/posts/42/ const App = () => { const [mousePosition, setMousePosition] = useState([0, 0]); // 마우스 움직임을 감지하여 mousePosition 상태 계속 업데이트 useEffect(() => { document.addEventListener('mousemove', (event) => { setMousePosition([event.clientX, event.clientY]); }); }, []); return ( ); }; 이런 구조의 앱이 있다고 가정해봅시다. MouseMovementContext라는게 있고 마우스가 움직이면 상태를 계속 업데이트합니다. MouseMo..
프론트엔드
2023. 4. 30. 19:34