์ฝ”๋”ฉ ๋ฉ”๋ชจ

๋‹คํฌ๋ชจ๋“œ๋ฅผ ๊ตฌํ˜„ํ•˜๋˜ ์ค‘... ๋งž์ดํ•œ ์—๋Ÿฌ... ๋‚˜๋Š” ์‚ฌ์šฉ๋„ ์•ˆํ•œ ํƒ€์ž…์ด ์—๋Ÿฌ๊ฐ€ ๋‚ฌ๋‹ค๊ณ  .. Uncaught TypeError: Cannot read properties of null (reading 'useContext') react.development.js:209 Warning: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: 1. You might have mismatching versions of React and the renderer (such as React DOM) 2. You might b..
vscode๋กœ ์ž‘์—…ํ•˜๋‹ค๊ฐ€ ๋’ค๋Šฆ๊ฒŒ git ์œผ๋กœ ์—ฐ๋™์‹œ์ผœ์•ผ๊ฒ ๋‹ค, ํ•ด์„œ ์—ฐ๋™ํ•˜๋‹ค๊ฐ€ ์‹ค์ˆ˜๋กœ push ๋ฅผ master๋กœ ํ•ด๋ฒ„๋ ธ๊ณ , ํ˜„์žฌ ๊ธฐ๋ณธ ๋ธŒ๋žœ์น˜๋Š” main์ธ๋ฐ ์“ธ๋ฐ์—†์ด ๋˜๋‹ค๋ฅธ master๋ผ๋Š” ๋ธŒ๋žœ์น˜๊ฐ€ ์ƒ๊ฒจ๋ฒ„๋ ธ๋‹ค. ๊ทธ๋ž˜์„œ ๊ตฌ๊ธ€๋กœ ์ฐพ์•„๋ณด๋˜ ์ค‘..master์— ์žˆ๋Š” ๊ฑธ main์— ๋‹ค ๊ฐ–๋‹ค ๋ฎ์–ด์“ฐ๋Š” ๋ฐฉ๋ฒ•์„ ์ฐพ์•˜๋‹ค. main์— ์ž‘์—…ํ•œ ๊ฒŒ ์‹น ๋‹ค ์‚ฌ๋ผ์ง€๋Š” ๋ฐฉ๋ฒ•์ด์ง€๋งŒ ๋ฐฉ๊ธˆ ๋ ˆํฌ์ƒ์„ฑํ•œ ๋‚˜์—๊ฒŒ๋Š” ์ƒ๊ด€์—†๋Š” ์ด์•ผ๊ธฐ๋‹ˆ ๊ทธ๋Œ€๋กœ ์ง„ํ–‰ํ•ด๋ณด๊ธฐ๋กœํ•œ๋‹ค git checkout master git branch main master -f git checkout main git push origin main -f 1๋กœ ์ปค๋ฐ‹ํ–ˆ๋˜ ๋‚ด์—ญ๋“ค์ด main์—๋„ ์ƒ๊ฒจ๋‚œ ๋ชจ์Šต ์ด์ œ master branch๋ฅผ ์ง€์›Œ๋ณด์ž ์›๊ฒฉ์ €์žฅ์†Œ(github) ์‚ญ์ œ ๋””ํดํŠธ๋ฅผ main..
import ์‹œ์—, ๊ถ๊ธˆํ•œ ์ ์ด ์ƒ๊ฒผ๋‹ค. ์‚ฌ์‹ค ๊ทธ๋™์•ˆ ์ฝ”๋”ฉํ•˜๋ฉด์„œ ์ด๊ฑด ์ค‘๊ด„ํ˜ธ๋ฅผ ์ ๋„ค? ์ด๊ฑด ์•ˆ ์ ๋„ค? ํ•˜๋ฉด์„œ๋„ ์˜ค๋ฅ˜ ๋œจ๊ฑฐ๋‚˜ ์•ˆ ๋  ๋•Œ๋งˆ๋‹ค ์ง€์›Œ๊ฐ€๋ฉด์„œ ํ–ˆ์—ˆ๋Š”๋ฐ, ๊ทธ๊ฒŒ ๊ทธ๊ฐ„ ๋ณ„์ƒ๊ฐ ์—†์ด ํ–ˆ์—ˆ๋Š”๋ฐ ์ด์ œ์„œ์•ผ ์ด์œ ๊ฐ€ ๊ถ๊ธˆํ•ด์กŒ๋‹ค.์ตœ๊ทผ์— ์‹ค์Šตํ–ˆ๋˜ ๋ฆฌ๋•์Šค ํˆดํ‚ท์„ ๊ฐ€์ ธ์™€ ๋ดค๋‹นimport ChangeColor from "./features/color/ChangeColor"; import { Counter } from "./features/counter/Counter";์–˜๋„ค๋‘˜์€ ๊ฐ™์€ ์ง€์œ„๋ฅผ ๊ฐ€์ง„ ์• ๋“ค์ธ๋ฐ, ํ•˜๋‚˜๋Š” ์ค‘๊ด„ํ˜ธ๋ฅผ ์จ์ฃผ๊ณ  ํ•˜๋‚˜๋Š” ์จ์ฃผ์ง€ ์•Š์€ ์ƒํƒœ๋กœ import๊ฐ€ ๋˜๊ณ  ์žˆ๋‹ค. ์ด์œ ๋Š”, export default ์— ์žˆ์—ˆ์Œ!export default ChangeColor;export function Counter() {..
1. Need to specify how to reconcile divergent branches. $ git pull hint: You have divergent branches and need to specify how to reconcile them. hint: You can do so by running one of the following commands sometime before hint: your next pull: hint: hint: git config pull.rebase false # merge hint: git config pull.rebase true # rebase hint: git config pull.ff only # fast-forward only hint: hint: Y..
Parsing error: Cannot Read File ...tsconfig.json ๋ชจ๋“  ํŒŒ์ผ ์ƒ๋‹จ์— ๋“ฑ์žฅํ•œ ํŒŒ์ผ ์—๋Ÿฌ.. ๋”ฐ๋ผ์„œ eslint์ƒ์—์„œ ๋ฐœ์ƒํ•œ ์—๋Ÿฌ์ด๋ฉฐ, ํ•ด๋‹น ํŒŒ์ผ์˜ ๊ฒฝ๋กœ๋ฅผ ์ถ”๊ฐ€ํ•ด์คŒ์œผ๋กœ์จ ์ œ๋Œ€๋กœ ๋œ ํŒŒ์ผ ๊ฒฝ๋กœ๋ฅผ ์ฐพ๋„๋ก ํ•ด์•ผ ํ–ˆ๋‹ค. ๐Ÿ”Ž ํ•ด๊ฒฐ ๋ฐฉ๋ฒ• 1 ํ•ด๊ฒฐ๋ฐฉ๋ฒ• .eslintrc.js ํŒŒ์ผ์—์„œ ์•„๋ž˜ ๋‚ด์šฉ์„ ์ถ”๊ฐ€ํ•ด ์ฃผ๋ฉด ๋œ๋‹ค. overrides: [ { files: ['*.ts', '*.tsx'], rules: { 'no-unused-vars': 'off', '@typescript-eslint/no-unused-vars': ['error'], '@typescript-eslint/no-shadow': ['error'], 'no-shadow': 'off', 'no-undef': 'off', }, /..
for ...in ๊ฐ์ฒด์ˆœํ™˜ for ...of ๋ฐฐ์—ด์ˆœํ™˜ ๊ฐ์ฒด ๊ฐ’์— for.. in ์„ ์“ฐ๋ฉด ๊ฐ์ฒด์˜ ํ”„๋กœํผํ‹ฐ๊ฐ€ ๋‚˜์˜ค๊ฒŒ ๋œ๋‹ค. ํ•˜์ง€๋งŒ of ๋ฅผ ์“ฐ๋ฉด ์—๋Ÿฌ๊ฐ€ ๋‚จ ๋ฐฐ์—ด์— of ๋ฅผ ์“ฐ๋ฉด ๋ฐฐ์—ด์˜ ์š”์†Œ๊ฐ€ ์ถœ๋ ฅ๋˜๊ณ , ๋ฐฐ์—ด์— in์„ ์ผ์„ ๋•Œ๋Š” ์—๋Ÿฌ๊ฐ€ ๋‚˜์ง€ ์•Š๊ณ  index์˜ ๊ฐ’์ด ๋‚˜์˜จ๋‹ค (๋ฐฐ์—ด๋„ ๊ฐ์ฒด์ด๊ธฐ ๋•Œ๋ฌธ์— ๋ฐฐ์—ด์˜ key ๊ฐ’)
ํด๋กœ์ € if (1 < 2) { let f = function () { let abc = 123;// abc ์„ ์–ธ ๋Œ€์ƒ์˜ ํƒ์ƒ‰ ๊ธฐ์ค€์—์„œ ์ œ์™ธ } f(); // ํ•จ์ˆ˜๊ฐ€ ์‹คํ–‰๋˜๊ณ  ๋‚œ ๋‹ค์Œ ์‹œ์ ์—์„œ ๊ทธ ์•ˆ์—์„œ ๋งŒ๋“  ๋ณ€์ˆ˜๋Š” ๋ฐ–์—์„œ ์‚ฌ์šฉx console.log(abc); //abc is not defined } ์ ‘๊ทผํ•  ๋ฐฉ๋ฒ•์ด ์—†๋Š” ์ž๋ฃŒ๋Š” ๋ฉ”๋ชจ๋ฆฌ์—์„œ ์—†์• ๋ฒ„๋ฆฐ๋‹ค. ํ•จ์ˆ˜๊ฐ€ ์‹คํ–‰์ด ์ข…๋ฃŒ๊ฐ€ ๋œ ์ดํ›„์—๋„ 123์„ ์ฐ์„ ์ˆ˜ ์žˆ๊ฒŒ ๋œ๋‹ค๊ณ  ํ•œ๋‹ค๋ฉด ์‚ฌ๋ผ์ง€์ง€ ์•Š์Œ if (1 < 2) { let f = function () { let abc = 123; let ddd = function () { return 55; } return ddd;// ddd๋Š” ๋ฆฌํ„ด์„ ํ•ด์คŒ - ccc ๋กœ ๋ฐ›์Œ } let ccc = f(); ccc(); // cc..
๊ตต๊ธฐ: font-weight ๋ฐ‘์ค„, ๊ฐ€๋กœ์ค„: text-decoration ์ž๊ฐ„: letter-spacing ํ–‰๊ฐ„: line-height ๊ฐ€๋กœ๋กœ ์ •๋ ฌํ•  ๊ฒฝ์šฐ text-align์„ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค. ์œ ํšจํ•œ ๊ฐ’์œผ๋กœ๋Š” left, right, center, justify(์–‘์ชฝ ์ •๋ ฌ)๊ฐ€ ์žˆ์Šต๋‹ˆ๋‹ค. ์„ธ๋กœ๋กœ ์ •๋ ฌํ•  ๊ฒฝ์šฐ์—๋Š” ๋ฌธ์ œ๊ฐ€ ์กฐ๊ธˆ ๋ณต์žกํ•ฉ๋‹ˆ๋‹ค. vertical-align ์†์„ฑ์„ ์‰ฝ๊ฒŒ ๋– ์˜ฌ๋ฆด ์ˆ˜ ์žˆ์ง€๋งŒ, ์ด ์†์„ฑ์€ ๋ถ€๋ชจ ์š”์†Œ์˜ display ์†์„ฑ์ด ๋ฐ˜๋“œ์‹œ table-cell์ด์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. ์„ธ๋กœ ์ •๋ ฌ์ด๋ž€, ์ •๋ ฌํ•˜๊ณ ์ž ํ•˜๋Š” ๊ธ€์ž๋ฅผ ๋‘˜๋Ÿฌ์‹ธ๊ณ  ์žˆ๋Š” ๋ฐ•์Šค์˜ ๋†’์ด๊ฐ€, ๊ธ€์ž ๋†’์ด๋ณด๋‹ค ํฐ ๊ฒฝ์šฐ์—๋งŒ ์ ์šฉํ•  ์ˆ˜ ์žˆ๋Š”๋ฐ, ๋ฐ•์Šค๋ฅผ ๋จผ์ € ํ•™์Šตํ•œ ๋‹ค์Œ์— ์ดํ•ดํ•˜๋Š” ๊ฒŒ ์ข‹์Šต๋‹ˆ๋‹ค. ์ดํ›„ ํ•™์Šตํ•  ๋ฐ•์Šค ๋ชจ๋ธ ๋ฐ ๋ ˆ์ด์•„์›ƒ์—์„œ ์ด ๋ฌธ์ œ๋ฅผ ์กฐ๊ธˆ ๋” ์ž์„ธํžˆ ๋‹ค๋ฃน..
let n = 2 // ์ˆซ์žn๋Š” 2๋ถ€ํ„ฐ์‹œ์ž‘ํ•œ๋‹ค n
: ๋…๋ฆฝ์ ์ด๊ณ  ์ž์ฒด ํฌํ•จ๋œ ์ฝ˜ํ…์ธ ๋ฅผ ์ง€์ •ํ•ฉ๋‹ˆ๋‹ค. : ๋ณธ๋ฌธ์˜ ์ฃผ์š” ๋ถ€๋ถ„์„ ํ‘œ์‹œํ•˜๊ณ  ๋‚จ์€ ๋ถ€๋ถ„์„ ์„ค๋ช…ํ•˜๋Š” ์š”์†Œ์ž…๋‹ˆ๋‹ค. ํŠน๋ณ„ํ•œ ์ผ์ด ์•„๋‹ˆ๋ฉด ์‚ฌ์ด๋“œ๋ฐ”๋‚˜ ๊ด‘๊ณ ์ฐฝ ๋“ฑ ์ค‘์š”ํ•˜์ง€ ์•Š์€ ๋ถ€๋ถ„์— ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค. : ์ผ๋ฐ˜์ ์œผ๋กœ ํŽ˜์ด์ง€๋‚˜ ํ•ด๋‹น ํŒŒํŠธ์˜ ๊ฐ€์žฅ ์•„๋žซ๋ถ€๋ถ„์— ์œ„์น˜ํ•˜๋ฉฐ, ์‚ฌ์ดํŠธ์˜ ๋ผ์ด์„ ์Šค, ์ฃผ์†Œ, ์—ฐ๋ฝ์ฒ˜ ๋“ฑ์„ ๋„ฃ์„ ๋•Œ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค. : ์ผ๋ฐ˜์ ์œผ๋กœ ํŽ˜์ด์ง€๋‚˜ ํ•ด๋‹น ์„น์…˜์˜ ๊ฐ€์žฅ ์œ—๋ถ€๋ถ„์— ์œ„์น˜ํ•˜๋ฉฐ, ์‚ฌ์ดํŠธ์˜ ์ œ๋ชฉ์ด ๋ณดํ†ต ๋“ค์–ด๊ฐ‘๋‹ˆ๋‹ค. ์„ ํƒ์ ์œผ๋กœ ์ƒ๋‹จ๋ฐ”๋‚˜ ๊ฒ€์ƒ‰์ฐฝ ๋“ฑ์ด ์•ˆ์— ๋“ค์–ด๊ฐˆ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. : ๋‚ด๋น„๊ฒŒ์ด์…˜(navigation)์˜ ์•ฝ์ž๋กœ, ์ผ๋ฐ˜์ ์œผ๋กœ ์ƒ๋‹จ๋ฐ” ๋“ฑ ์‚ฌ์ดํŠธ๋ฅผ ์•ˆ๋‚ดํ•˜๋Š” ์š”์†Œ์— ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค. ๋ณดํ†ต์€ ์•ˆ์— ์„ ๋„ฃ์–ด ๋ชฉ๋ก ํ˜•ํƒœ๋กœ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค. : ๋ฌธ์„œ์˜ ์ฃผ๋œ ์ฝ˜ํ…์ธ ๋ฅผ ํ‘œ์‹œํ•ฉ๋‹ˆ๋‹ค. ๋‹ค๋ฅธ HTML ์š”์†Œ์™€ ๋งˆ์ฐฌ๊ฐ€์ง€๋กœ, ์‹œ๋งจํ‹ฑ ์š”์†Œ์™€ ์˜๋ฏธ๋ฅผ ..
๋ฒ„ํŠผ Buttons · Bootstrap v5.0 ์—ฌ๊ธฐ์„œ css ์ด์œ๊ฑฐ ๊ฐ€์ ธ๋‹ค๊ฐ€ ์“ฐ๊ธฐ Buttons Use Bootstrap’s custom button styles for actions in forms, dialogs, and more with support for multiple sizes, states, and more. getbootstrap.com Browse Fonts - Google Fonts Google Fonts Making the web more beautiful, fast, and open through great typography fonts.google.com ํƒ€์ดํ‹€ ๋ฐ‘์—๋‹ค๊ฐ€ ๋„ฃ์–ด์คŒ (๋งํฌ/ ์ž„ํฌํŠธ ์žˆ๋Š” ๋ถ€๋ถ„) CSS rules to specify families ๋ฐ‘์—๋„ ๋ณต์‚ฌ fo..
HTML์€ ๊ตฌ์กฐ๋ฅผ ํ‘œํ˜„ํ•˜๊ธฐ ์œ„ํ•œ ์–ธ์–ด ul -> ol ๋กœ ๋ฐ”๊พธ๋ฉด ์•ž์—๊ฐ€ ์ˆซ์ž๋กœ ๋ฐ”๋€œ password์—๋Š” ์ž๋™์œผ๋กœ ๊ฐ€๋ ค์ง„ ๊ธ€์”จ๊ฐ€ ๋‚˜์˜ด input type="checkbox" : ๋‹ค์ค‘์„ ํƒ๊ฐ€๋Šฅ input type=''radio" : ๊ทธ๋ฃน์„ค์ •๊ฐ€๋Šฅ(name์œผ๋กœ ๊ทธ๋ฃนํ™” ํ•ด์ฃผ์–ด์•ผ ํ•จ), ํ•˜๋‚˜๋งŒ ์„ ํƒ text area : ์ค„๋ฐ”๊ฟˆ์ด ๊ฐ€๋Šฅ /text area button : ๋ฒ„ํŠผ id : ๊ณ ์œ ํ•œ ์ด๋ฆ„์„ ๋ถ™์ผ ๋•Œ class : ๋ฐ˜๋ณต๋˜๋Š” ์˜์—ญ์„ ์œ ํ˜•๋ณ„๋กœ ๋ถ„๋ฅ˜ํ•  ๋•Œ ์…€๋ ‰ํ„ฐ ์‚ฌ์šฉ ๋ฐ˜๋ณต๋˜๋Š” ํ•ญ๋ชฉ์€ class๋กœ ์ง€์ •ํ•œ๋‹ค. ๊ฐ™์€ class๋กœ ์ง€์ •ํ•จ์œผ๋กœ์„œ ๋™์ผํ•œ ์œ ํ˜•์ž„์„ ์•Œ ์ˆ˜ ์žˆ๋‹ค. ul#comment : ์ฝ๊ธฐ ์˜์—ญ ์ž์ฒด๋Š” ๊ณ ์œ ํ•˜๋ฏ€๋กœ id ๋กœ ์ง€์ •ํ•œ๋‹ค -> ๋งŒ์•ฝ id(#)๋กœ ์ง€์ •ํ•˜๊ฒŒ ๋œ๋‹ค๋ฉด? id๋ฅผ ์ „์ฒด๋ฅผ ํ†ตํ‹€์–ด์„œ ์œ ์ผํ•˜๊ฒŒ ์„ค์ •. ์ค‘..
Dong _ hwa
'์ฝ”๋”ฉ ๋ฉ”๋ชจ' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๊ธ€ ๋ชฉ๋ก (3 Page)