일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Interface
- solidity
- SSR
- hardhat
- nextJS
- Props
- express.js
- bitcoin
- middleware
- web
- node.js
- tailwindcss
- Ethereum
- CLASS
- 기준
- HTML
- concept
- graphQL
- built in object
- Redux
- typeScript
- blockchain
- API
- REACT
- error
- useState
- evm
- JavaScript
- 삶
- CSS
- Today
- Total
목록REACT (44)
ReasonJun
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..

Babel is a tool that extands the grammar of JavaScript. It converts the latest, convenient, or experimental JavaScript grammar that is not yet supported into a formal JavaScript format, allowing it to run properly even in an older browser-like environment. For JSX to properly convert to JavaScript, there are several rules you must follow. At least two tags must be wrapped in one tag or use 'Frag..

JSX (JavaScript XML) is an extension to the JavaScript language syntax used in React. It allows you to write HTML-like code within JavaScript, making it easier to define the structure and appearance of UI components in React. With JSX, you can write HTML-like tags and include JavaScript expressions within curly braces {}. It provides a concise and intuitive way to define the UI hierarchy and the..
JavaScript Code: // JavaScript code for rendering a list of names const names = ['Alice', 'Bob', 'Charlie']; const listContainer = document.getElementById('list-container'); const list = document.createElement('ul'); names.forEach(name => { const listItem = document.createElement('li'); listItem.innerText = name; list.appendChild(listItem); }); listContainer.appendChild(list); React Code: // Rea..
Declarative syntax is a fundamental concept in React that defines how UI components are structured and rendered. In React, you describe the desired state of your user interface, and React takes care of updating the actual DOM to match that state. This declarative approach contrasts with an imperative approach, where you manually manipulate the DOM to reflect changes in the UI. In React's declara..

Virtual DOM Problem with websites made with existing html / CSS / js Whenever a DOM change occurs due to some interaction, the render tree is recreated. That is, the style of all elements is recalculated. This provides the potential for the web to slow down when there is a lot of interaction. Virtual DOM is a copy of the real DOM into memory. In React, the Virtual DOM (Document Object Model) is ..