๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๋ฐ˜์‘ํ˜•

๋‚ด๊ฐ€ ๋งŒ๋‚œ ERROR11

[React] Each child in a list should have a unique key prop. ๋ฆฌ์•กํŠธ๋ฅผ ๊ฐœ๋ฐœํ•˜๋ฉด์„œ ํ•œ๋ฒˆ์ฏค์€ ๋ณด์…จ์„ ๊ฒฝ๊ณ  ๋ฉ”์„ธ์ง€... ๋ผ๊ณ  ํ•œ๋‹ค๐Ÿ˜ฅ map ํ•จ์ˆ˜์— ๋Œ€ํ•œ ์ดํ•ด๊ฐ€ ๋ถ€์กฑํ–ˆ์„๋•Œ(์†”์งํžˆ ์ง€๊ธˆ๋„ ๋ถ€์กฑํ•จใ…Žใ…Ž) ๋ฐฐ์šด๊ฑธ ์ ์šฉํ•ด๋ณด๋Š๋ผ ์—ด์‹ฌํžˆ ์‚ฝ์งˆํ•˜๊ณ  ์žˆ์—ˆ์Œ.. ๐Ÿช“ key ๊ฐ’์„ ์ฃผ์ง€ ์•Š์€ Comment.js import React from 'react'; import './Comment.scss'; class Comment extends React.Component { render() { const { commentList } = this.props; return ( {commentList.map(comment => { return ( // โญ๏ธ key ๊ฐ’์ด ์—†์Œ!! {comment.userName} {comment.content} ); })} ); } } export default Co.. 2021. 11. 16.
[React] Invalid DOM property `class`. Did you mean `className`? React์—์„  className์œผ๋กœ ์จ์•ผํ•˜๋Š”๋ฐ class๋กœ ํ•˜๋ฉด ์ €๋Ÿฐ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•œ๋‹ค. ์•ˆ์ข‹์€ ์˜ˆ์‹œ ๐Ÿ‘‡๐Ÿป ์ข‹์€ ์˜ˆ์‹œ ๐Ÿ‘‡๐Ÿป 2021. 11. 16.
[React] Too many re-renders. React limits the number of renders to prevent an infinite loop. ๋ฐฑ์—”๋“œ์™€ ๋ฐ์ดํ„ฐ๋ฅผ ์—ฐ๊ฒฐํ•œ ํ›„ ๊ฒŒ์‹œํŒ ๋ฆฌ์ŠคํŠธ๋ฅผ ๋ฐ›์•„์˜ค๋‹ค๊ฐ€ ์ด๋Ÿฐ ์—๋Ÿฌ๋ฅผ ๋งŒ๋‚ฌ๋‹ค...!!! (๋™๊ณต์ง€์ง„) ๊ฒ€์ƒ‰ ํ•จ์ˆ˜๋ฅผ ์‹คํ–‰ํ•  ๋•Œ ์ €๋ ‡๊ฒŒ ํ•จ์ˆ˜๋ช…๋งŒ ํ˜ธ์ถœํ•ด์„œ ๊ทธ๋Ÿฐ ๊ฒƒ์ด์˜€๋‹ค. ์•„๋ž˜์™€ ๊ฐ™์ด ์ ์šฉํ•ด์ฃผ๋‹ˆ ๋”์ด์ƒ ๋œจ์ง€ ์•Š์•˜๋‹ค. setKey({ ...searchKey, is_active: e.value })}>๊ฒ€์ƒ‰ 2021. 11. 16.
[Git] error: src refspec main does not match any error: failed to push some refs to (github repo ์ฃผ์†Œ) ์›๊ฒฉ ์ €์žฅ์†Œ์— push๋ฅผ ํ•˜๋ ค๋Š”๋ฐ ์ด๋Ÿฐ ์—๋Ÿฌ๊ฐ€ ๋–ด๋‹ค. ๋‹นํ™ฉํ•˜์ง€๋ง๊ณ  solution 1 $ git init ํ•œ ํ›„์— ๋‹ค์‹œ git remote ๋ช…๋ น์–ด๋กœ ์—ฐ๊ฒฐํ•ด์ค€๋‹ค. solution 2 $ git checkout -b master $ git push origin master ๊ธฐ๋ณธ์œผ๋กœ ์ƒ์„ฑ๋˜๋Š” branch๊ฐ€ main์ด๊ธฐ ๋•Œ๋ฌธ์— master branch๋ฅผ ์ƒ์„ฑํ•ด์ค˜์•ผ ํ•œ๋‹ค. 2021. 11. 16.
[TypeScript] tsc-watch -onSuccess " node dist/index.js" Cannot find module 'typescript/bin/tsc' error Command failed with exit code 9. $ npm i -D @types/node typescript ts-node ๋กœ ํ•ด๊ฒฐ ๊ฐ€๋Šฅํ•˜๋‹ค. 2021. 11. 16.
๋ฐ˜์‘ํ˜•