반응형
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
- useState #Hooks
- interceptors
- react fragment
- 백준 #적록색약
- 백준 #직각삼각형
- JWT #토큰 #refreshToken #accessToken #Token #token #localStorage #sessionStorage
- 플로이드 #c++
- #useRef #언제 쓰는데?
- 이친수
- React #effect hook #useEffect
- RateLimit
- npm #not being able to find a file #npm install Error
- React #controlled component #비제어 컴포넌트 #제어 컴포넌트
- React #리액트 이벤트 주기 #리액트 이벤트
- DP #c++
- raect typescript #react #typescript #styled-component
- 버블링 #갭쳐링 #이벤트 #JS
- html entities
- React-Query
- 다익스트라 #파티 #백준
- 노마드 코더 #타입스크립트 #typescript #class
- 얕은 복사 #깊은 복사 #shallow copy #deep copy
- 빡킹독
- donwstream #upstream #origin
- react #useCallback #react Hook
- React #Hook rules #Hook 규칙
- rate limit
- axios
- Next.js
- 코드스테이츠 #알고리즘 #그리디
Archives
- Today
- Total
목록2023/06/02 (1)
꿈꾸는 개발자
JSX.IntrinsicElements에 대한 이해
리액트에서 글이 많은 컴포넌트를 작성할 때 때로는 bold 형식의 글이 필요할 때가 있다. 하지만 매번 그럴 때 마다 태그를 쓰기 귀찮아서, 뭔가 새로운 방법이 없을까 여러 코드를 탐험하던 중 흥미로운 코드를 찾았다. import React from "react"; export function TranslateBold({ children, className, as = "p" }) { const pattern = /(\*\*.*?\*\*)/; const text = children; const parts = text.split(pattern).filter((x) => x.length > 0); const elements = parts.map((part, index) => { if (part.match(pa..
프로그래밍언어/TypeScript
2023. 6. 2. 19:49