요새 리액트를 열심히 공부하고 있는데 react-router-dom v6를 사용하다가 상당히 아쉬운 이슈를 발견했다. 예시코드는 아래와 같다. // react-router-dom v5 interface RouteState { name: string; } function Coin() { const { state } = useLocation(); // react-router-dom v6 interface RouteState { state: { coin: ICoin; }; } function Coin() { const { state } = useLocation() as RouteState; 사실 리액트나 타입스크립트를 깊게 알지 못해서 이게 왜 불편하고 문제인지 명확하게 인지하고 있진 못하지만, 보통 다른 h..
참고링크 : https://262.ecma-international.org/7.0/#sec-unary-plus-operator ECMAScript® 2016 Language Specification 5.1.1Context-Free Grammars# A context-free grammar consists of a number of productions. Each production has an abstract symbol called a nonterminal as its left-hand side, and a sequence of zero or more nonterminal and terminal symbols as its right-hand sid 262.ecma-international.org 신기한..
참고 : https://stackoverflow.com/questions/58860021/why-react-hook-usestate-uses-const-and-not-let Why React Hook useState uses const and not let The standard way to use a React useState Hook is the following: const [count, setCount] = useState(0); However this const count variable is clearly going to be reassigned to a different primitive... stackoverflow.com 간단하게 위와 같은 코드가 있다. React + JSX를 사용해서 ..
- Total
- Today
- Yesterday
- ViaAWSService
- temlate
- web
- 2xx
- aws
- defaulttheme
- JavaScript
- stateType
- scp
- REACT
- conftest policy
- security
- cloudsecurity
- IAM
- teplate
- fleet manager
- steampipe
- terraform
- Cloud
- 계정정보저장
- opensource
- 4xx
- 우주와컴퓨터
- platform
- compliance
- .get()
- ControlTower
- findinglatestversion
- AWS #CIS
- CIS
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |