[Chrome] Unchecked runtime ์—๋Ÿฌ ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•

[Chrome] Unchecked runtime ์—๋Ÿฌ ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•

๊ฐœ๋ฐœ์ž ๋ชจ๋“œ์—์„œ ๊ธฐ๋Šฅ ์‹คํ–‰ ์‹œ ์ฝ˜์†”์ฐฝ์— ์˜ค๋ฅ˜๊ฐ€ ์ถœ๋ ฅ๋˜๋Š” ๋ฌธ์ œ๋Š” ์‹œํฌ๋ฆฟ๋ชจ๋“œ์—์„œ ๋ฐœ์ƒํ•˜์ง€ ์•Š์•˜์œผ๋ฉฐ, Chrome ํ™•์žฅ ํ”„๋กœ๊ทธ๋žจ ๊ฐ„์˜ ํ†ต์‹  ๋ฌธ์ œ๋กœ ํ™•์ธ๋˜์—ˆ๋‹ค. Google Chrome์šฉ Adobe Acrobat ํ™•์žฅ ํ”„๋กœ๊ทธ๋žจ์„ ์‚ญ์ œํ•˜๋ฉด ๋ฌธ์ œ๊ฐ€ ํ•ด๊ฒฐ๋˜์—ˆ๋‹ค.
DriedPollack's avatar
Jun 06, 2024
๐Ÿ’ปHTML / CSS / JavaScriptโ—Error
[Bootstrap v5.0] ํ”Œ๋ ‰์Šค๋ฅผ ์ด์šฉํ•œ ์š”์†Œ ๋ฐฐ์น˜ ๋ฐฉ๋ฒ•(d-flex)

[Bootstrap v5.0] ํ”Œ๋ ‰์Šค๋ฅผ ์ด์šฉํ•œ ์š”์†Œ ๋ฐฐ์น˜ ๋ฐฉ๋ฒ•(d-flex)

"d-flex"๋Š” `<div>` ํƒœ๊ทธ ๋‚ด๋ถ€์˜ ์š”์†Œ๋“ค์„ ์ธ๋ผ์ธ์œผ๋กœ ๋ฐฐ์น˜์‹œํ‚ค๋Š” ๊ธฐ๋Šฅ์„ ๊ฐ€์ง€๊ณ  ์žˆ๋‹ค. `<a>` ํƒœ๊ทธ๋กœ ๋‹ค๋ฅธ ํƒœ๊ทธ๋ฅผ ๊ฐ์‹ธ๊ฒŒ ๋˜๋ฉด ์ธ๋ผ์ธ ํŒ์ •์ด ๊ฐ์‹ผ ํƒœ๊ทธ ์ „์ฒด๋กœ ์ ์šฉ๋˜์ง€๋งŒ, ์ด๋ฅผ ๋ง‰๊ธฐ ์œ„ํ•ด `<a>` ํƒœ๊ทธ๋ฅผ `<div>` ๋‚ด๋ถ€์— ์œ„์น˜์‹œ์ผœ ์›ํ•˜๋Š” ๋ ˆ์ด์•„์›ƒ์„ ์„ค์ •ํ•  ์ˆ˜ ์žˆ๋‹ค.
DriedPollack's avatar
Apr 12, 2024
๐Ÿ’ปHTML / CSS / JavaScript
[programmers] ํŠน์ •ํ•œ ๋ฌธ์ž๋ฅผ ๋Œ€๋ฌธ์ž๋กœ ๋ฐ”๊พธ๊ธฐ - JavaScript

[programmers] ํŠน์ •ํ•œ ๋ฌธ์ž๋ฅผ ๋Œ€๋ฌธ์ž๋กœ ๋ฐ”๊พธ๊ธฐ - JavaScript

์˜์†Œ๋ฌธ์ž๋กœ ์ด๋ฃจ์–ด์ง„ ๋ฌธ์ž์—ด 'my_string'์—์„œ 'alp'์— ํ•ด๋‹นํ•˜๋Š” ๋ชจ๋“  ๊ธ€์ž๋ฅผ ๋Œ€๋ฌธ์ž๋กœ ๋ฐ”๊พผ ๋ฌธ์ž์—ด์„ ๋ฐ˜ํ™˜ํ•˜๋Š” ๋ฌธ์ œ๋ฅผ ํ’€์—ˆ์Šต๋‹ˆ๋‹ค. ์ฒ˜์Œ ์ž‘์„ฑํ•œ ์ฝ”๋“œ๋Š” ๋ฐ˜๋ณต๋ฌธ์„ ์‚ฌ์šฉํ•˜์—ฌ ๋ฌธ์ž์—ด์„ ์ˆœํšŒํ•˜๊ณ  ๋Œ€๋ฌธ์ž๋กœ ๋ณ€๊ฒฝํ•˜๋Š” ๋ฐฉ์‹์ด์—ˆ์ง€๋งŒ, ์ˆ˜์ •ํ•œ ์ฝ”๋“œ์—์„œ๋Š” replaceAll() ํ•จ์ˆ˜๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๋” ๊ฐ„๊ฒฐํ•˜๊ฒŒ ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ–ˆ์Šต๋‹ˆ๋‹ค.
Jan 08, 2024
๐Ÿ’ปHTML / CSS / JavaScript๐Ÿ’กCoding Test
[programmers] ๋ฌธ์ž์—ด ์—ฌ๋Ÿฌ ๋ฒˆ ๋’ค์ง‘๊ธฐ - JavaScript

[programmers] ๋ฌธ์ž์—ด ์—ฌ๋Ÿฌ ๋ฒˆ ๋’ค์ง‘๊ธฐ - JavaScript

๋ฌธ์ž์—ด๊ณผ ์ด์ฐจ์› ์ •์ˆ˜ ๋ฐฐ์—ด์„ ์ด์šฉํ•˜์—ฌ ์ฃผ์–ด์ง„ ๋ช…๋ น์„ ์ˆœ์„œ๋Œ€๋กœ ์ฒ˜๋ฆฌํ•œ ํ›„์˜ ๋ฌธ์ž์—ด์„ ๋ฐ˜ํ™˜ํ•˜๋Š” ๋ฌธ์ œ์ž…๋‹ˆ๋‹ค. ์ฒ˜์Œ์—๋Š” ๋ฌธ์ž์—ด์„ ์ง์ ‘ ๋ณ€๊ฒฝํ•˜๋ ค๊ณ  ํ–ˆ์œผ๋‚˜, ๋ฌธ์ž์—ด์€ immutable type์ด๋ฏ€๋กœ ๋ณ€๊ฒฝ์ด ๋ถˆ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค. ๋”ฐ๋ผ์„œ ๋ฌธ์ž์—ด์„ ๋ฐฐ์—ด๋กœ ๋ณ€ํ™˜ํ•˜์—ฌ ์ฒ˜๋ฆฌํ•œ ํ›„ ๋‹ค์‹œ ๋ฌธ์ž์—ด๋กœ ๋ณ€ํ™˜ํ•˜๋Š” ๋ฐฉ์‹์œผ๋กœ ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Jan 07, 2024
๐Ÿ’ปHTML / CSS / JavaScript๐Ÿ’กCoding Test
[programmers] ์ˆ˜์—ด๊ณผ ๊ตฌ๊ฐ„ ์ฟผ๋ฆฌ 4 - JavaScript

[programmers] ์ˆ˜์—ด๊ณผ ๊ตฌ๊ฐ„ ์ฟผ๋ฆฌ 4 - JavaScript

์ •์ˆ˜ ๋ฐฐ์—ด arr์™€ 2์ฐจ์› ์ •์ˆ˜ ๋ฐฐ์—ด queries๊ฐ€ ์ฃผ์–ด์ง€๊ณ , queries์— ๋”ฐ๋ผ arr๋ฅผ ์ฒ˜๋ฆฌํ•œ ํ›„์˜ ๊ฒฐ๊ณผ๋ฅผ ๋ฐ˜ํ™˜ํ•˜๋Š” solution ํ•จ์ˆ˜๋ฅผ ์ž‘์„ฑํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. ๊ฐ query๋Š” [s, e, k] ํ˜•ํƒœ์ด๋ฉฐ, s โ‰ค i โ‰ค e์ธ ๋ชจ๋“  i์— ๋Œ€ํ•ด i๊ฐ€ k์˜ ๋ฐฐ์ˆ˜์ด๋ฉด arr[i]์— 1์„ ๋”ํ•ฉ๋‹ˆ๋‹ค. ๋ฌธ์ œ๋ฅผ ํ’€๋ฉด์„œ ๋ฌธ์ œ ์ดํ•ด์— ์–ด๋ ค์›€์„ ๊ฒช์—ˆ์ง€๋งŒ, ๊ธฐ์กด ์ˆ˜์—ด๊ณผ ๊ตฌ๊ฐ„ ์ฟผ๋ฆฌ ๋ฌธ์ œ์™€ ์œ ์‚ฌํ•œ ๋ฐฉ์‹์œผ๋กœ if๋ฌธ์„ ์‚ฌ์šฉํ•˜์—ฌ ํ•ด๊ฒฐํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Jan 06, 2024
๐Ÿ’ปHTML / CSS / JavaScript๐Ÿ’กCoding Test
[programmers] ์ˆ˜์—ด๊ณผ ๊ตฌ๊ฐ„ ์ฟผ๋ฆฌ 2 - JavaScript

[programmers] ์ˆ˜์—ด๊ณผ ๊ตฌ๊ฐ„ ์ฟผ๋ฆฌ 2 - JavaScript

์ •์ˆ˜ ๋ฐฐ์—ด arr์™€ 2์ฐจ์› ์ •์ˆ˜ ๋ฐฐ์—ด queries๊ฐ€ ์ฃผ์–ด์ง€๊ณ , ๊ฐ query๋งˆ๋‹ค ์กฐ๊ฑด์„ ๋งŒ์กฑํ•˜๋Š” ๊ฐ€์žฅ ์ž‘์€ ๊ฐ’์„ ์ฐพ์•„ ๊ฒฐ๊ณผ๋ฅผ ๋ฐ˜ํ™˜ํ•˜๋Š” ๋ฌธ์ œ์ž…๋‹ˆ๋‹ค. ์ฃผ์–ด์ง„ ์ฝ”๋“œ๋Š” queries๋ฅผ ๋ฐ˜๋ณตํ•˜๋ฉด์„œ arr์—์„œ ์กฐ๊ฑด์„ ๋งŒ์กฑํ•˜๋Š” ๊ฐ’์„ ์ฐพ๊ณ , ๊ฒฐ๊ณผ๋ฅผ answer์— ์ €์žฅํ•˜๋Š” ๋ฐฉ์‹์œผ๋กœ ๊ตฌํ˜„๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค. ๋˜ ๋‹ค๋ฅธ ์ฝ”๋“œ๋Š” for..of ๋ฐ˜๋ณต๋ฌธ๊ณผ filter(), sort() ํ•จ์ˆ˜๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•˜๋Š” ๋ฐฉ์‹์ž…๋‹ˆ๋‹ค.
Jan 06, 2024
๐Ÿ’ปHTML / CSS / JavaScript๐Ÿ’กCoding Test
[React] ๋ฆฌ์•กํŠธ๋ฅผ ํ™œ์šฉํ•œ ๋ฏธ๋‹ˆ ๋ธ”๋กœ๊ทธ

[React] ๋ฆฌ์•กํŠธ๋ฅผ ํ™œ์šฉํ•œ ๋ฏธ๋‹ˆ ๋ธ”๋กœ๊ทธ

๋ฆฌ์•กํŠธ๋ฅผ ํ™œ์šฉํ•œ ๋ฏธ๋‹ˆ ๋ธ”๋กœ๊ทธ ํ”„๋กœ์ ํŠธ์ž…๋‹ˆ๋‹ค. ํ”„๋กœ์ ํŠธ๋Š” list, page, ui ์ปดํฌ๋„ŒํŠธ๋กœ ๊ตฌ์„ฑ๋˜๋ฉฐ, ์ฃผ์š” ๊ธฐ๋Šฅ์€ ๊ธ€ ๋ชฉ๋ก ๋ณด๊ธฐ, ๊ธ€ ๋ณด๊ธฐ, ๋Œ“๊ธ€ ๋ณด๊ธฐ, ๊ธ€ ์ž‘์„ฑ, ๋Œ“๊ธ€ ์ž‘์„ฑ์ž…๋‹ˆ๋‹ค. ํ”„๋กœ์ ํŠธ์—์„œ๋Š” styled-components๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์ปดํฌ๋„ŒํŠธ๋ฅผ ์Šคํƒ€์ผ๋งํ•˜๊ณ , ๋ฐ์ดํ„ฐ๋ฅผ ํ™œ์šฉํ•˜์—ฌ ๋™์ ์œผ๋กœ ์ปดํฌ๋„ŒํŠธ๋ฅผ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค.
Jan 03, 2024
๐Ÿ’ปHTML / CSS / JavaScriptโš›React
[์†Œํ”Œ์˜ ์ฒ˜์Œ ๋งŒ๋‚œ ๋ฆฌ์•กํŠธ] 14์žฅ ์‹ค์Šต๋ฌธ์ œ

[์†Œํ”Œ์˜ ์ฒ˜์Œ ๋งŒ๋‚œ ๋ฆฌ์•กํŠธ] 14์žฅ ์‹ค์Šต๋ฌธ์ œ

์ด ํฌ์ŠคํŠธ์—์„œ๋Š” ๋ฆฌ์•กํŠธ ์ปดํฌ๋„ŒํŠธ ํŠธ๋ฆฌ ๋‚ด์—์„œ ๋ฐ์ดํ„ฐ๋ฅผ ๊ณต์œ ํ•˜๊ธฐ ์œ„ํ•ด ์ปจํ…์ŠคํŠธ๋ฅผ ํ™œ์šฉํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ํ•™์Šตํ–ˆ์Šต๋‹ˆ๋‹ค. ์ปจํ…์ŠคํŠธ๋ฅผ ์ด์šฉํ•˜๋ฉด ์ค‘๊ฐ„์— ์žˆ๋Š” ์—˜๋ฆฌ๋จผํŠธ๋“ค์—๊ฒŒ props๋ฅผ ๋„˜๊ฒจ์ฃผ์ง€ ์•Š๊ณ ๋„ ๋ฐ์ดํ„ฐ๋ฅผ ์ œ๊ณตํ•  ์ˆ˜ ์žˆ์–ด ์ฝ”๋“œ ์ตœ์ ํ™”์— ๋„์›€์ด ๋ฉ๋‹ˆ๋‹ค.
Jan 02, 2024
๐Ÿ’ปHTML / CSS / JavaScriptโš›React
[programmers] ์ตœ๋นˆ๊ฐ’ ๊ตฌํ•˜๊ธฐ - JavaScript

[programmers] ์ตœ๋นˆ๊ฐ’ ๊ตฌํ•˜๊ธฐ - JavaScript

์ฃผ์–ด์ง„ ์ •์ˆ˜ ๋ฐฐ์—ด์—์„œ ๊ฐ€์žฅ ์ž์ฃผ ๋‚˜์˜ค๋Š” ๊ฐ’์„ ์ฐพ์•„ ์ตœ๋นˆ๊ฐ’์„ ๋ฐ˜ํ™˜ํ•˜๋Š” solution ํ•จ์ˆ˜๋ฅผ ์ž‘์„ฑํ•˜๋Š” ๋ฌธ์ œ์ž…๋‹ˆ๋‹ค. ๋ฐฐ์—ด์˜ ์ตœ๋Œ“๊ฐ’์„ ๊ธฐ์ค€์œผ๋กœ ์ƒˆ๋กœ์šด ๋ฐฐ์—ด์„ ์ƒ์„ฑํ•˜๊ณ , ํ•ด๋‹น ๊ฐ’์— ํ•ด๋‹นํ•˜๋Š” ์ธ๋ฑ์Šค์˜ ๊ฐ’์„ 1์”ฉ ์ฆ๊ฐ€์‹œํ‚ต๋‹ˆ๋‹ค. ๊ทธ ํ›„, ์ƒˆ๋กœ์šด ๋ฐฐ์—ด์—์„œ ๊ฐ€์žฅ ํฐ ๊ฐ’์„ ๊ฐ€์ง„ ์ธ๋ฑ์Šค๋ฅผ ๋ฐ˜ํ™˜ํ•˜๋ฉฐ, ์ค‘๋ณต๋œ ๊ฐ’์ด ์žˆ๋‹ค๋ฉด -1์„ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค.
Jan 01, 2024
๐Ÿ’ปHTML / CSS / JavaScript๐Ÿ’กCoding Test
[programmers] ์„ธ๊ท  ์ฆ์‹ - JavaScript

[programmers] ์„ธ๊ท  ์ฆ์‹ - JavaScript

์ฃผ์–ด์ง„ ์‹œ๊ฐ„ ๋™์•ˆ ์„ธ๊ท ์ด 2๋ฐฐ์”ฉ ์ฆ์‹ํ•œ๋‹ค๊ณ  ํ•  ๋•Œ, ์ดˆ๊ธฐ ์„ธ๊ท  ์ˆ˜์™€ ๊ฒฝ๊ณผ ์‹œ๊ฐ„์— ๋”ฐ๋ฅธ ์„ธ๊ท  ์ˆ˜๋ฅผ ๊ณ„์‚ฐํ•˜๋Š” ๋ฌธ์ œ์ž…๋‹ˆ๋‹ค. ๊ฐ„๋‹จํ•œ ๋ฐ˜๋ณต๋ฌธ์„ ์‚ฌ์šฉํ•˜์—ฌ ์ฃผ์–ด์ง„ ์‹œ๊ฐ„๋งŒํผ ์„ธ๊ท  ์ˆ˜๋ฅผ 2๋ฐฐ์”ฉ ์ฆ๊ฐ€์‹œํ‚จ ํ›„ ๊ฒฐ๊ณผ๋ฅผ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค.
Dec 31, 2023
๐Ÿ’ปHTML / CSS / JavaScript๐Ÿ’กCoding Test
[programmers] ์˜ท๊ฐ€๊ฒŒ ํ• ์ธ ๋ฐ›๊ธฐ - JavaScript

[programmers] ์˜ท๊ฐ€๊ฒŒ ํ• ์ธ ๋ฐ›๊ธฐ - JavaScript

10๋งŒ ์› ์ด์ƒ ์‚ฌ๋ฉด 5%, 30๋งŒ ์› ์ด์ƒ ์‚ฌ๋ฉด 10%, 50๋งŒ ์› ์ด์ƒ ์‚ฌ๋ฉด 20% ํ• ์ธ์ด ์ ์šฉ๋ฉ๋‹ˆ๋‹ค. ์ฃผ์–ด์ง„ ๊ฐ€๊ฒฉ์— ํ• ์ธ์œจ์„ ์ ์šฉํ•˜์—ฌ ์ง€๋ถˆํ•ด์•ผ ํ•  ๊ธˆ์•ก์„ ๋ฐ˜ํ™˜ํ•˜๋Š” solution ํ•จ์ˆ˜๋ฅผ ์ž‘์„ฑํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. ๊ธฐ์กด ์ž‘์„ฑ๋œ ์ฝ”๋“œ์—์„œ๋Š” 10๋งŒ ์› ์ดํ•˜์˜ ๊ฒฝ์šฐ์— ๋Œ€ํ•œ ์ฒ˜๋ฆฌ๊ฐ€ ์—†์–ด์„œ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ–ˆ๊ณ , ์ด๋ฅผ ์ˆ˜์ •ํ•œ ์ฝ”๋“œ๊ฐ€ ์ œ์‹œ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.
Dec 31, 2023
๐Ÿ’ปHTML / CSS / JavaScript๐Ÿ’กCoding Test
[programmers] ํŠน์ • ๋ฌธ์ž ์ œ๊ฑฐํ•˜๊ธฐ - JavaScript

[programmers] ํŠน์ • ๋ฌธ์ž ์ œ๊ฑฐํ•˜๊ธฐ - JavaScript

๋ฌธ์ž์—ด my_string์—์„œ ๋ฌธ์ž letter๋ฅผ ์ œ๊ฑฐํ•œ ๊ฒฐ๊ณผ๋ฅผ ๋ฐ˜ํ™˜ํ•˜๋Š” solution ํ•จ์ˆ˜๋ฅผ ์ž‘์„ฑํ•˜๋Š” ๋ฌธ์ œ์ž…๋‹ˆ๋‹ค. ์ฃผ์–ด์ง„ ๋ฌธ์ž์—ด์—์„œ ์ฃผ์–ด์ง„ ๋ฌธ์ž์™€ ๋™์ผํ•œ ๋ฌธ์ž๋Š” ๊ฑด๋„ˆ๋›ฐ๊ณ , ๋‚˜๋จธ์ง€ ๋ฌธ์ž๋“ค์„ ๋ฐฐ์—ด์— ์ถ”๊ฐ€ํ•œ ํ›„ join() ํ•จ์ˆ˜๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๋ฌธ์ž์—ด๋กœ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค.
Dec 31, 2023
๐Ÿ’ปHTML / CSS / JavaScript๐Ÿ’กCoding Test
[programmers]  ๋ฐฐ์—ด ์›์†Œ์˜ ๊ธธ์ด - JavaScript

[programmers] ๋ฐฐ์—ด ์›์†Œ์˜ ๊ธธ์ด - JavaScript

์ฃผ์–ด์ง„ ๋ฌธ์ž์—ด ๋ฐฐ์—ด์˜ ๊ฐ ์›์†Œ์˜ ๊ธธ์ด๋ฅผ ๋‹ด์€ ๋ฐฐ์—ด์„ ๋ฐ˜ํ™˜ํ•˜๋Š” ๋ฌธ์ œ์ž…๋‹ˆ๋‹ค. ์ฃผ์–ด์ง„ ๋ฐฐ์—ด์„ for๋ฌธ์œผ๋กœ ์ˆœํšŒํ•˜๋ฉฐ ๊ฐ ์›์†Œ์˜ ๊ธธ์ด๋ฅผ push ํ•จ์ˆ˜๋ฅผ ํ†ตํ•ด ๋ฐ˜ํ™˜ํ•  ๋ฐฐ์—ด์— ์ถ”๊ฐ€ํ•˜๊ฑฐ๋‚˜, map ํ•จ์ˆ˜๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์ƒˆ๋กœ์šด ๋ฐฐ์—ด์„ ์ƒ์„ฑํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Dec 31, 2023
๐Ÿ’ปHTML / CSS / JavaScript๐Ÿ’กCoding Test
[์†Œํ”Œ์˜ ์ฒ˜์Œ ๋งŒ๋‚œ ๋ฆฌ์•กํŠธ] 7์žฅ ์‹ค์Šต๋ฌธ์ œ

[์†Œํ”Œ์˜ ์ฒ˜์Œ ๋งŒ๋‚œ ๋ฆฌ์•กํŠธ] 7์žฅ ์‹ค์Šต๋ฌธ์ œ

์ด ๋ฌธ์„œ๋Š” ๋ฆฌ์•กํŠธ์™€ ๊ด€๋ จ๋œ ์—ฌ๋Ÿฌ ์‹ค์Šต ์˜ˆ์ œ๋“ค์„ ๋‹ค๋ฃจ๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ์ฃผ์š” ๋‚ด์šฉ์œผ๋กœ๋Š” useRef๋ฅผ ์ด์šฉํ•œ DOM ์š”์†Œ ํฌ์ปค์Šค, useEffect๋ฅผ ์ด์šฉํ•œ ์‚ฌ์ด๋“œ ์ดํŽ™ํŠธ ์ฒ˜๋ฆฌ, ์ปค์Šคํ…€ ํ›…์„ ์ด์šฉํ•œ ์ปดํฌ๋„ŒํŠธ ๊ฐœ๋ฐœ ๋“ฑ์ด ์žˆ์Šต๋‹ˆ๋‹ค.
Dec 30, 2023
๐Ÿ’ปHTML / CSS / JavaScriptโš›React
[์†Œํ”Œ์˜ ์ฒ˜์Œ ๋งŒ๋‚œ ๋ฆฌ์•กํŠธ] 6์žฅ ์‹ค์Šต๋ฌธ์ œ

[์†Œํ”Œ์˜ ์ฒ˜์Œ ๋งŒ๋‚œ ๋ฆฌ์•กํŠธ] 6์žฅ ์‹ค์Šต๋ฌธ์ œ

๋ฆฌ์•กํŠธ ์ปดํฌ๋„ŒํŠธ์—์„œ state์™€ ์ƒ๋ช…์ฃผ๊ธฐ๋ฅผ ์ด์šฉํ•˜์—ฌ ์•Œ๋ฆผ ๊ธฐ๋Šฅ์„ ๊ตฌํ˜„ํ–ˆ์Šต๋‹ˆ๋‹ค. NotificationList ์ปดํฌ๋„ŒํŠธ์—์„œ๋Š” state๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์•Œ๋ฆผ ๋ฐ์ดํ„ฐ๋ฅผ ๊ด€๋ฆฌํ•˜๊ณ , componentDidMount์™€ componentWillUnmount ํ•จ์ˆ˜๋ฅผ ์ด์šฉํ•˜์—ฌ ์•Œ๋ฆผ์„ ์ฃผ๊ธฐ์ ์œผ๋กœ ์—…๋ฐ์ดํŠธํ•˜๊ณ  ์ œ๊ฑฐํ•ฉ๋‹ˆ๋‹ค. ์ด๋ฅผ ํ†ตํ•ด ์•Œ๋ฆผ์„ ๋™์ ์œผ๋กœ ํ‘œ์‹œํ•˜๊ณ  ๊ด€๋ฆฌํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Dec 30, 2023
๐Ÿ’ปHTML / CSS / JavaScriptโš›React
[์†Œํ”Œ์˜ ์ฒ˜์Œ ๋งŒ๋‚œ ๋ฆฌ์•กํŠธ] 4์žฅ ์‹ค์Šต๋ฌธ์ œ

[์†Œํ”Œ์˜ ์ฒ˜์Œ ๋งŒ๋‚œ ๋ฆฌ์•กํŠธ] 4์žฅ ์‹ค์Šต๋ฌธ์ œ

์ด ํฌ์ŠคํŠธ๋Š” ๋ฆฌ์•กํŠธ๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์‹œ๊ณ„ ์ปดํฌ๋„ŒํŠธ๋ฅผ ๋งŒ๋“œ๋Š” ์‹ค์Šต ์˜ˆ์ œ์™€ ๊ด€๋ จ๋œ ๋‚ด์šฉ์„ ๋‹ค๋ฃจ๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. setInterval() ํ•จ์ˆ˜๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๋งค ์ดˆ๋งˆ๋‹ค clock ์ปดํฌ๋„ŒํŠธ๋ฅผ root ๋…ธ๋“œ์— ๋ Œ๋”๋งํ•˜๊ณ , ๋ Œ๋”๋ง์ด๋ž€ ์ปดํฌ๋„ŒํŠธ๊ฐ€ ํ˜„์žฌ ์ƒํƒœ์— ๊ธฐ๋ฐ˜ํ•˜์—ฌ UI๋ฅผ ๊ตฌ์„ฑํ•˜๋Š” ์ž‘์—…์„ ์˜๋ฏธํ•ฉ๋‹ˆ๋‹ค. React๋Š” Virtual DOM์„ ์‚ฌ์šฉํ•˜์—ฌ ํ•„์š”ํ•œ ๋ถ€๋ถ„๋งŒ ์‹ค์ œ DOM์— ๋ฐ˜์˜ํ•˜์—ฌ ๋ถˆํ•„์š”ํ•œ ์ˆ˜์ •์„ ๋ฐฉ์ง€ํ•ฉ๋‹ˆ๋‹ค.
Dec 30, 2023
๐Ÿ’ปHTML / CSS / JavaScriptโš›React
๏ฝขVallery Festival๏ฝฃ ํ™๋ณด๋ฅผ ์œ„ํ•œ ์›น์‚ฌ์ดํŠธ ๋ฉ”์ธ ํŽ˜์ด์ง€ ์ œ์ž‘ ์‹ค์Šต

๏ฝขVallery Festival๏ฝฃ ํ™๋ณด๋ฅผ ์œ„ํ•œ ์›น์‚ฌ์ดํŠธ ๋ฉ”์ธ ํŽ˜์ด์ง€ ์ œ์ž‘ ์‹ค์Šต

์ด ํฌ์ŠคํŠธ๋Š” "Vallery Festival"์„ ํ™๋ณดํ•˜๊ธฐ ์œ„ํ•œ ์›น์‚ฌ์ดํŠธ์˜ ๋ฉ”์ธ ํŽ˜์ด์ง€ ์ œ์ž‘ ์‹ค์Šต ๋‚ด์šฉ์„ ๋‹ด๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. HTML, CSS, JavaScript๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๋กœ๊ณ , ์‚ฌ์ด๋“œ๋ฐ”, ์ด๋ฏธ์ง€ ์Šฌ๋ผ์ด๋“œ, ๊ณต์ง€์‚ฌํ•ญ, ๊ฐค๋Ÿฌ๋ฆฌ, ๋ฐ”๋กœ๊ฐ€๊ธฐ, ํ‘ธํ„ฐ ๋“ฑ์˜ ์š”์†Œ๋ฅผ ๊ตฌํ˜„ํ•˜์˜€์Šต๋‹ˆ๋‹ค.
Dec 25, 2023
๐Ÿ’ปHTML / CSS / JavaScript
๏ฝขDream Jeju๏ฝฃ ์—ฌํ–‰์‚ฌ ์›น์‚ฌ์ดํŠธ ๋ฉ”์ธ ํŽ˜์ด์ง€ ์ œ์ž‘ ์‹ค์Šต

๏ฝขDream Jeju๏ฝฃ ์—ฌํ–‰์‚ฌ ์›น์‚ฌ์ดํŠธ ๋ฉ”์ธ ํŽ˜์ด์ง€ ์ œ์ž‘ ์‹ค์Šต

์ด ํฌ์ŠคํŠธ๋Š” "Dream Jeju" ์—ฌํ–‰์‚ฌ ์›น์‚ฌ์ดํŠธ์˜ ๋ฉ”์ธ ํŽ˜์ด์ง€ ์ œ์ž‘ ์‹ค์Šต์„ ๋‹ค๋ฃจ๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. HTML, CSS, JavaScript๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๋กœ๊ณ , ๋„ค๋น„๊ฒŒ์ด์…˜, ์ด๋ฏธ์ง€ ์Šฌ๋ผ์ด๋“œ ์‡ผ, ํƒญ ๋ฉ”๋‰ด, ํ€ต ๋งํฌ, ํ‘ธํ„ฐ ๋“ฑ์„ ๊ตฌํ˜„ํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ์„ค๋ช…ํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค.
Dec 25, 2023
๐Ÿ’ปHTML / CSS / JavaScript
๏ฝขJUST ์‡ผํ•‘๋ชฐ๏ฝฃ ์›น์‚ฌ์ดํŠธ ๊ฐœ์„ ์„ ์œ„ํ•œ ๋ฉ”์ธํŽ˜์ด์ง€ ์ œ์ž‘ ์‹ค์Šต

๏ฝขJUST ์‡ผํ•‘๋ชฐ๏ฝฃ ์›น์‚ฌ์ดํŠธ ๊ฐœ์„ ์„ ์œ„ํ•œ ๋ฉ”์ธํŽ˜์ด์ง€ ์ œ์ž‘ ์‹ค์Šต

์ด ํฌ์ŠคํŠธ๋Š” JUST ์‡ผํ•‘๋ชฐ ์›น์‚ฌ์ดํŠธ์˜ ๋ฉ”์ธํŽ˜์ด์ง€ ์ œ์ž‘ ์‹ค์Šต์„ ๋‹ค๋ฃจ๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. index.html ํŒŒ์ผ์€ JUST ์‡ผํ•‘๋ชฐ์˜ ๋ฉ”์ธ ํŽ˜์ด์ง€๋ฅผ ๊ตฌ์„ฑํ•˜๋Š” HTML ์ฝ”๋“œ๋ฅผ ํฌํ•จํ•˜๊ณ  ์žˆ์œผ๋ฉฐ, style.css ํŒŒ์ผ์€ ํ•ด๋‹น ํŽ˜์ด์ง€์˜ ์Šคํƒ€์ผ์„ ์ •์˜ํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. script.js ํŒŒ์ผ์€ ์ด๋ฏธ์ง€ ์Šฌ๋ผ์ด๋“œ, ๋ชจ๋‹ฌ ํŒ์—… ๋“ฑ๊ณผ ๊ฐ™์€ ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ ๊ธฐ๋Šฅ์„ ๊ตฌํ˜„ํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค.
Dec 25, 2023
๐Ÿ’ปHTML / CSS / JavaScript

๐Ÿ‘จ๐Ÿปโ€๐Ÿ’ปDriedPollack's Blog

RSSยทPowered by Inblog