일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- HTML
- CSS
- evm
- Props
- bitcoin
- concept
- Redux
- CLASS
- nextJS
- Ethereum
- hardhat
- blockchain
- web
- node.js
- solidity
- SSR
- error
- 기준
- graphQL
- tailwindcss
- API
- REACT
- 삶
- middleware
- typeScript
- JavaScript
- built in object
- Interface
- useState
- express.js
- Today
- Total
목록Frontend (231)
ReasonJun
Problem : In the process of assigning the modified value in 'setTags' to the 'onChange' function, the value was updated one beat slowly. code: import React, { useState } from 'react'; interface ImageUploadProps { onChange: (value: string[]) => void; errors: any; } const TagInput: React.FC = ({ onChange, errors }) => { const [tags, setTags] = useState([]); const [tag, setTag] = useState(''); func..
In the part where you specify 'useForm', it is recommended to specify only one button: submit. If another button exists and it uses the lib as the useForm, submit will be executed. Instead of button, it is better to specify another div and set onClick.

code: Error not scrolling after navigating to '/User/Transactions/' const onDelete = () => { setLoading(true) axios .post('/api/delete/my-transaction', { transactionId: transactionId }) .then(() => { toast.success('Complete deletion of transaction'); router.push('/User/Transactions/'); }) .catch((err) => { toast.error(`Fail: The delete failed.`); console.error(err); }).finally(() => { setLoading..
The "not assignable to parameter of type never" error in TypeScript occurs when you try to assign a value of a type that is not never to a parameter of type never. The never type is a special type in TypeScript that represents a value that can never occur. This means that any attempt to assign a value of type never to a parameter of type never will result in an error. For example, the following ..
data-popper-placement = working well (Soluition : data-poper-placement) : Allow the part responsible for 'data-popper-placement to exist at the time of initial rendering without any conditions. {session?.user ? ( ) : ( )} not working {session?.user ? ( ) : ( )} Why? The data-dropdown-toggle attribute is being used in JavaScript code that handles the toggling of the dropdown menu based on user in..
React.FC and JSX.Element are both types that are used in TypeScript to represent React components. However, there are some key differences between the two types. React.FC is a type that is specifically designed for React components. It has an implicit children prop, which means that the component will accept children even if the children prop is not explicitly defined. React.FC also has default ..