p-iknow's devlog

There are 1 post that match #next.js.

algorithm (28)
javascript (16)
code-signal (16)
programmers (12)
자료구조 (8)
ADT (8)
front-end (7)
vscode (5)
sorting (5)
editor (5)
webpack (4)
typescript (3)
react (3)
node (3)
issue (3)
terminal (2)
never (2)
log (2)
css (2)
OOP (2)
웹표준 (1)
웹접근성 (1)
union (1)
throttle (1)
speech-bubble (1)
sementic-release (1)
section-tag (1)
review (1)
reflection (1)
pull-request (1)
private-field (1)
path (1)
passport (1)
packages (1)
observer-pattern (1)
next.js (1)
mvc-pattern (1)
interface (1)
inheritance (1)
http (1)
html (1)
github (1)
git (1)
functional-programming (1)
excess-property-check (1)
event (1)
eslint (1)
dom (1)
debug (1)
debounce (1)
conditional-type (1)
carousel (1)
browser (1)
Webpack (1)
Structural-Typing (1)
React (1)

Next.js 에서 router.query 사용시 type 정의해서 사용하기

2023-03-12

Code 코드는 링크의 샌드박스에서 확인하실 수 있습니다. Background nextjs 에서 pathParam 과 queryParam 값에 접근 하고자 한다. URI는 다음과 같다. pathParam과 queryParam에 접근하는 코드는 다음과 같다. pathParam 인 와 queryParam 인 는 아래와 같은 타입으로 추론된다. image…

next.js
react
© p-iknow's devlog, Built with Gatsby and gatsby-starter-hoodie theme.