일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- express.js
- web
- bitcoin
- REACT
- blockchain
- Props
- concept
- evm
- 삶
- 기준
- SSR
- node.js
- hardhat
- middleware
- nextJS
- solidity
- Redux
- JavaScript
- Interface
- typeScript
- API
- CSS
- error
- graphQL
- tailwindcss
- HTML
- CLASS
- Ethereum
- useState
- built in object
- Today
- Total
목록State (4)
ReasonJun
Zustand is a small, unopinionated state management library for React. It is based on hooks and provides a simple and intuitive API for managing state. Zustand works by creating a single store that holds all of the state for your application. You can then access and update the state using hooks. Here is an example of how to use Zustand to create a counter: import { create } from 'zustand'; const ..
React Context is a way to share data between components without having to pass props down manually at every level. This can be useful for sharing data that is used by many components in an application, such as the current user, the current theme, or the current location. To use React Context, you first need to create a context object using the createContext() function. This function takes two ar..
React.Component / Component In React, a class is a way to define a component using ES6 class syntax. It allows you to create reusable components with encapsulated state and behavior. React class components are based on the JavaScript class keyword and are an alternative to functional components. To define a class component in React, you typically extend the base Component or **React.Component** ..
In React, both state and props are used to manage and pass data in components, but they serve different purposes. State: State is an internal data storage specific to a component. It represents the mutable data that can be changed over time. State is managed and controlled by the component itself. When state changes, the component re-renders to reflect the updated state. State is typically initi..