일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- REACT
- web
- API
- tailwindcss
- bitcoin
- JavaScript
- typeScript
- hardhat
- CSS
- blockchain
- Ethereum
- graphQL
- solidity
- 기준
- concept
- Props
- express.js
- node.js
- CLASS
- SSR
- error
- evm
- 삶
- HTML
- Interface
- built in object
- nextJS
- useState
- middleware
- Redux
- Today
- Total
목록useMemo (2)
ReasonJun
useMemo is a hook in React that allows you to memoize the result of a computation. It is used to optimize performance by avoiding unnecessary recalculations of expensive or complex values. When you use useMemo, you provide a function and a dependency array. The function is executed during the rendering phase, and its return value is memoized. The memoized value is then cached and only recalculat..
Hooks are a feature introduced in React 16.8 that allows you to use state and other React features without writing a class. They provide a way to add stateful logic to functional components, making it easier to reuse and organize your code. Hooks are designed to enable better code reuse, composition, and readability in React applications. Using Hooks: import React, { useState } from 'react'; con..