일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- graphQL
- 기준
- blockchain
- express.js
- typeScript
- 삶
- API
- useState
- evm
- Props
- hardhat
- CLASS
- bitcoin
- error
- SSR
- nextJS
- Redux
- built in object
- REACT
- solidity
- node.js
- concept
- Interface
- CSS
- tailwindcss
- Ethereum
- HTML
- web
- middleware
- JavaScript
- Today
- Total
목록shallow comparison (2)
ReasonJun
In React, "shallow compare" and "deep compare" refer to different approaches for comparing the values of props and state to determine if a component should re-render. Shallow Compare: Shallow comparison, which is the default behavior in React, involves comparing the prop and state values by their references. When using shallow comparison, React checks if the references of the current props and s..
React.memo is a higher-order component (HOC) provided by React that aims to optimize functional components by preventing unnecessary re-renders. It is similar to the PureComponent class component optimization but designed for functional components. By wrapping a functional component with React.memo, React will automatically memoize the component and only re-render it if its props have changed. I..