일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- bitcoin
- CSS
- JavaScript
- Ethereum
- evm
- SSR
- tailwindcss
- Interface
- error
- solidity
- middleware
- express.js
- web
- concept
- HTML
- API
- graphQL
- 삶
- hardhat
- built in object
- REACT
- Redux
- 기준
- useState
- CLASS
- blockchain
- typeScript
- Props
- node.js
- nextJS
- Today
- Total
목록useCallback (2)
ReasonJun
useCallback is a hook in React that is used to memoize and optimize the creation of a function, especially when passing that function down to child components. It is primarily used to avoid unnecessary re-creation of function references, which can lead to unnecessary re-renders of child components. When a component renders, any functions defined within the component body are recreated each time ..
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..