목록분류 전체보기 (373)
Silver Library (Archived)
개요. 이 둘의 공통점은 무엇일까요? - store 및 애플리케이션의 state 를, 중앙화 된 위치(로서) 접근하는 기능을 제공. - data 를 특정/대상 component tree 에 passing 하는 것. - 기존 방식에 비하면 상대적으로 한눈에 상황을 보고 이해 할 수 있는 human friendly(?) 감이 있는 코드. 정도로 요약해봤습니다. 그리고 Redux 는 좀 더 복잡한 구조 시스템에서 용이하다는 점. 반대로 말하면, 단순히 fetch 하고 level 15 쯤에다가 하나 데이터를 dispatch 한다던지. 이런 걸 하는게 목적이라면 context API 가 나은 선택이 될 수 있을지도 모릅니다. 그리고 필자가 고민했던 React Query 와의 조합 같은 대체제가 있는 점도 Redu..
RTK Query is a powerful data fetching and caching tool. It is designed to simplify common cases for loading data in a web application, eliminating the need to hand-write data fetching & caching logic yourself. RTK Query is an optional addon included in the Redux Toolkit package, and its functionality is built on top of the other APIs in Redux Toolkit. For more information, see this link. Recomme..
The point is; how to make it like expert? A function's this keyword behaves a little differently in JavaScript compared to other languages. It also has some differences between strict mode and non-strict mode. In most cases, the value of this is determined by how a function is called (runtime binding). It can't be set by assignment during execution, and it may be different each time the function..
So, what does it mean? Here is for the record. In JavaScript, a lexical environment is: A data structure that holds information about the variable bindings, that are active at a given point in the code. It consists of an outer lexical environment and an inner lexical environment. 1. The outer environment is the one that is associated with the code that surrounds the current block of code, 2. The..