목록2022/11/11 (3)
Silver Library (Archived)
https://www.intervue.io/developer/short-note/what-is-a-lexical-environment-sandbox-5XTCDNYWG Intervue - Developer Best short notes on programming concepts & questions asked in interviews www.intervue.io A lexical environment is a data structure that holds identifier-variable mapping. (here identifier refers to the name of variables/functions, and the variable is the reference to actual object [i..
useLocation, 이건 query parameter 를 받아오는 용도로 알려져 있는데 한번 간략히 상기삼아 기록해보겠습니다. useLocation? This hook returns the current location object. This can be useful if you'd like to perform some side effect whenever the current location changes. import * as React from 'react'; import { useLocation } from 'react-router-dom'; function App() { let location = useLocation(); React.useEffect(() => { // Google Anal..
// 예시 import { useParams } from "react-router-dom"; function Alpha() { const { id } = useParams(); const package = AlphaList[id]; return ( {package.name} Main Stacks: {package.skills} ... ); } 아마 react-router-dom 으로 해본 것들은 이런 식으로 정리 해 나가지 않을까 싶네요. 다른 분들이 더 잘 적어 두었을테니 이번에도 나만의 공책이란 느낌으로 적어보고자 합니다. useParams() hook 이란 뭘까요? 일단 이건 react-router-dom 에서 지원되는 건데, 주 기능은 아래와 같습니다. 주 기능. parameter(매게변수) 의 ..