reactjs tag

4 questions


3 answers
149 views
0
배열을 오브젝트로 바꾸는 방법

hello라는 배열 객체를 answer이라는 constant에 넣고 싶습니다. 이 때 응답의 키 값을 hello의 값 키로, 응답의 값을 hello의 레이블 값으로 변경하고자 합니다. 어떻게 해야 하죠? 객체 엔트리를 생각하고 있었는데 안되네요. 가능할까요? 이건 코드입니다. const hello = [ { label: 'one', value...

1 years ago

2 answers
255 views
0
error:0308010C:digital envelope routines::unsupported 에러 해결 방법

디폴트 IntelliJ IDEA React 프로젝트를 만든 다음에 이런 에러가 떴는데요. Error: error:0308010C:digital envelope routines::unsupported at new Hash (node:internal/crypto/hash:67:19) at Object.createHash (node:crypto:130:10)...


1 answers
324 views
0
React의 컴포넌트를 렌더링하기 위해 API에서 오는 데이터를 매핑할 수 없습니다.

axios.get가 리턴하는 각 위치에 대해 Leaflet Marker을 렌더링 하고 싶습니다. (각각의 위치가 있는 오브젝트 배열을 리턴) 여기서 두 가지 에러가 발생합니다. "Uncaught TypeError: data.map is not a function" "Warning: Can't perform a React s...

1 years ago

1 answers
718 views
0
Uncaught Error: Rendered more hooks than during the previous render. 에러 해결 방법

아래 코드로 해보면 문제는 맵 함수의 Remove Product 함수를 호출하는 부분에 있습니다. function AddOrder() { const d = new Date(); let text = d.toString(); const [addOrder] = useMutation(queries.ADD_ORDER); const [editUser] = us...

1 years ago

© 2023 OneMinuteCode. All rights reserved.