일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Interface
- CLASS
- Redux
- HTML
- express.js
- bitcoin
- typeScript
- hardhat
- built in object
- tailwindcss
- graphQL
- error
- REACT
- evm
- concept
- nextJS
- JavaScript
- CSS
- 삶
- web
- API
- node.js
- Props
- 기준
- middleware
- solidity
- SSR
- blockchain
- Ethereum
- useState
- Today
- Total
목록useRef (2)
ReasonJun
In React, the useRef hook is used to create a mutable reference that persists across renders. It provides a way to access and interact with DOM elements or values that may change over time without triggering a re-render of the component. The useRef hook returns a mutable ref object with a .current property. This property can hold any value and remains the same between renders. When the .current ..
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..