-
React props로 내려가지 않는 요소들Computer Science/React 2022. 11. 9. 14:01
https://reactjs.org/warnings/special-props.html
Special Props Warning – React
A JavaScript library for building user interfaces
reactjs.org
https://stackoverflow.com/questions/42261505/getting-error-message-li-key-is-not-a-prop
Getting error message "li: 'key' is not a prop"
I'm working with React (version 15.4.2), and I'm populating a <ul> dynamically with query results from my database. I thought that I had set up the 'key' property on the <li>s correctly...
stackoverflow.com
ref 및 key는 자식요소로 내려가지 않는다 이것을 고려해서 개발을 하자!
'Computer Science > React' 카테고리의 다른 글
Storybook 기본 background 변경하기. (0) 2022.10.22 Storybook github, Netlify 로 배포하기. (0) 2022.10.22 React useRef를 사용하여 원하는 tag에 focus 주기. (0) 2022.09.04 React State Handling (0) 2022.09.04 React navigate를 통해 state 전달하기. (0) 2022.08.17