일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- blockchain
- useState
- evm
- concept
- middleware
- CSS
- JavaScript
- web
- 삶
- HTML
- CLASS
- tailwindcss
- express.js
- API
- Ethereum
- Redux
- bitcoin
- error
- typeScript
- graphQL
- solidity
- built in object
- REACT
- SSR
- node.js
- Interface
- hardhat
- nextJS
- 기준
- Props
- Today
- Total
목록Frontend/React (41)
ReasonJun
Higher-Order Components (HOCs) are a design pattern in React that allow for code reuse, logic abstraction, and component composition. HOCs are functions that take a component as input and return an enhanced version of that component with additional functionality or props. Here's an example to illustrate the concept of an HOC: // Higher-Order Component const withLogger = (WrappedComponent) => { r..
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..
Conditional rendering in React refers to the ability to display different components or content based on certain conditions or logical expressions. It allows you to control what gets rendered to the DOM based on the state or props of your components. There are several ways to implement conditional rendering in React: if statement: You can use a standard JavaScript if statement to conditionally r..
Function and Class Components The simplest way to define component is to write a JS function : function Welcome(props) { return Hello, {props.name}; } This function is a valid React component because it accepts a single “props” (which stands for properties) object argument with data and returns a React element. We call such components “function components” because they are literally JS function...

Props is short for properties. When we need to deliver a value to a component, we use props. When using ‘Hello’ component in App component, it delivers the value of name. 2. Props delivered to components can be inquired through parameters. Props is delivered in the form of an object, and if you want to look up the ‘name’ value, you can look up ‘props.name’. Multiple props, unstructured assignmen..
Pros Single-Page Applications (SPAs) offer several advantages that make them a popular choice for modern web development. Here are some pros of SPAs: Enhanced User Experience: SPAs provide a smooth and responsive user experience by dynamically updating the content on the page without requiring a full page reload. Users can navigate through the application seamlessly, as the UI remains interactiv..