๋คํฌ๋ชจ๋๋ฅผ ๊ตฌํํ๋ ์ค... ๋ง์ดํ ์๋ฌ... ๋๋ ์ฌ์ฉ๋ ์ํ ํ์
์ด ์๋ฌ๊ฐ ๋ฌ๋ค๊ณ .. 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๋ฅผ ์ ์ฒด๋ฅผ ํตํ์ด์ ์ ์ผํ๊ฒ ์ค์ . ์ค..