์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- suspense ๋น๋๊ธฐ
- js ์ค์ฝํ
- ๊ตฌ๋ฆํค ์ฑ๋ฆฐ์ง ํ๊ณ
- ๋ฐฑ์ค 1339๋ฒ js
- ํ๋ก๊ทธ๋๋จธ์ค ๊ฑฐ๋ฆฌ๋๊ธฐ ํ์ธํ๊ธฐ
- ์ค์ฝํ
- ๋ฐฑ์ค 2108 nodejs
- suspense ๋ณ๋ชฉํ์
- ๋ฐฑ์ค 2108 ์๋ฐ์คํฌ๋ฆฝํธ
- ์๋ฐ์คํฌ๋ฆฝํธ ์ค์ฝํ
- ๊ตฌ๋ฆํค
- emotion RSC
- ๋ฆฌ์กํธ์ฟผ๋ฆฌ suspense
- ์ต์ ๋์ฒด์ด๋
- ๋ฐฑ์ค 1339๋ฒ nodejs
- suspense ๋์์๋ฆฌ
- next13 emotion
- js ๊ฑฐ๋ฆฌ๋๊ธฐ ํ์ธํ๊ธฐ
- ํ๋ก๊ทธ๋๋จธ์ค ๋ฌธ์์ด ์์ถ
- ๋ฐฑ์ค 1339๋ฒ ์๋ฐ์คํฌ๋ฆฝํธ
- ๊ตฌ๋ฆํค ์ฑ๋ฆฐ์ง
- ์ฌ์ฉ์ฑ ๊ฐ์
- ์นด์นด์ค ์ฝํ
- js
- TypeError: createContext only works in Client Components. Add the "use client" directive at the top of the file to use it. Read more:
- js ๋ฌธ์์ด ์์ถ
- emtion app router
- app router emotion
- ์๋ฐ์คํฌ๋ฆฝํธ ๋ฌธ์์ด ์์ถ
- suspense react-query
- Today
- Total
๋ชฉ๋ก๐งโ๐ป Web/JavaScript (16)
Lennon FE
Array๋ฅผ ์ํํ๋ ๋ฐฉ๋ฒ์ ์ฌ๋ฌ๊ฐ์ง ๋ฐฉ๋ฒ์ด ์๋ค. ๊ณ ์ ์ ์ด๋ผ๋ฉด const arr = [1,2,3,4,5] for(let i = 0; i { console.log(v); }) forEach๋ฅผ ์ฌ์ฉํ ๊ฒ์ด๋ค. ๋๋, ์ดํฐ๋ฌ๋ธ, ์ดํฐ๋ ์ดํฐ์ ๊ฐ๋ ์ ์๊ฑฐ๋, ๋ญ๊ฐ ์ด๋ ๊ฒ ์ฐ๋ ๊ฒ ์ข๋ค๊ณ ๋ค์ผ์ จ๋ค๋ฉด const arr = [1,2,3,4,5] for(const a of arr) { console.log(a); } for of..

๊ณ ์ฐจํจ์๋ ํจ์๋ฅผ ๊ฐ์ผ๋ก ๋ค๋ฃจ๋ ํจ์์ด๋ค. ํจ์๋ฅผ ์ธ์๋ก ๋ฐ์์ ์คํํ๋ ํจ์๋ค์ ์ดํด๋ณด์. const funcAdd = f => f(1); const add10 = a => a + 10; console.log(funcAdd(add10)); ์ funcAdd ํจ์๋ console.log์์ ์ธ์๋ก add10ํจ์๋ฅผ ๋ฐ๋๋ค. ๋น์ฐํ๊ฒ ๊ฒฐ๊ณผ๋ 11๋ก ์์ํ ์ ์๋ค. ํจ์๋ฅผ ๋ง๋ค์ด ๋ฆฌํดํ๋ ๊ฒฝ์ฐ๋ ์๋ค. ์ด๋ฐ ๊ฒฝ์ฐ๋ฅผ ํด๋ก์ ๋ฅผ ๋ง๋ค์ด ๋ฆฌํดํ๋ ํจ์๋ผ๊ณ ๋งํ๋ค. ํจ์๊ฐ ํจ์๋ฅผ ๋ง๋ค์ด์ ๋ฆฌํดํ ๋๋ ๊ฒฐ๊ตญ์ ํด๋ก์ ๋ฅผ ๋ง๋ค์ด์ ๋ฆฌํดํ๊ธฐ ์ํด ์ฌ์ฉํ๋ค. ์๋ ์์๋ฅผ ํ์ธํด๋ณด์, ์ฐ๋ฆฌ๊ฐ ์จ๋ณด์ง ๋ชปํ ๋๋์ arrow Func ๋ก ์ ํ์๋ค. const add = a => b => a + b; const add10 = add(..
react, javascript์์๋ ๋ณดํต sort๋ฅผ ์ด์ฉํด ์ ๋ ฌ์ ๋ง์ดํ๋ค. ๊ทธ๋ฌ๋ sort๋ฅผ ์ฌ์ฉํ๋ฉด ๋ชจ๋๊ฐ ์๋ค์ํผ ์ฝ๋ ๊ฐ๋ ์ฑ์ด ๋ง์ด ๋จ์ด์ง ์ ๋ฐ์ ์๋ค. ๋ํ sort๋ ์ด์ํ ๋ฌธ์ ์ ์ด ์๋ค. const arr = [1,3,20,5]; const sortedArr = arr.sort(); console.log(sortedArr) // [1,20,3,5] sort๋ฅผ ๊ทธ๋ฅ ์ฌ์ฉํ๋ฉด ์์ฒ๋ผ ์ฐ๋ฆฌ๊ฐ ์์ํ๋๋ก ๋์ํ์ง ์๋๋ค...(์๋ฐ์คํฌ๋ฆฝํธ... ใ .ใ ๐ฅฒ) ๊ทธ๋ก์ธํด ์๋ฐ์คํฌ๋ฆฝํธ๋ฅผ ์ฌ์ฉํ๋ ๊ฐ๋ฐ์๋ผ๋ฉด ๋ณดํต ๊ธฐ๋ณธ sort๋ฅผ ๋ฐ๋ก ์ฌ์ฉํ์ง ์๊ณ (a,b) ๋ ์ธ์๋ฅผ ๋น๊ตํ๋ ํจ์๋ฅผ ๋ง๋ค์ด sort๋ฅผ ์ฌ์ฉํ๋ค. const arr = [1,3,20,5]; const sortedArr = arr.sort((a..
์๋ฐ์คํฌ๋ฆฝํธ์์ ์ผ๋ฐ ํจ์๋ ํจ์๋ฅผ ์ ์ธํ ๋ this์ ๋ฐ์ธ๋ฉํ ๊ฐ์ฒด๊ฐ ๋์ ์ผ๋ก ๊ฒฐ์ ๋๋ค. ์๋ ํจ์๊ฐ ์ด๋ป๊ฒ ์คํ๋ ์ง ์์ํด๋ณด์. const obj = { name: 'minho', intro: function() { console.log(this.name) setTimeout(function() { console.log(this.name) }, 1000) } } obj.intro() ๋ ผ๋ฆฌ์ ์ผ๋ก ์๊ฐํด๋ณด๋ฉด ๋น์ฐํ minho๊ฐ ๋ ๋ฒ ๋ฐ๊ฑฐ๋ผ ์๊ฐํ๋ค. ๊ทธ๋ฌ๋ ๋ ๋ฒ์งธ console.log๋ undefined๊ฐ ๋จ๋ ๊ฑธ ํ์ธํ ์ ์๋ค. ์ด์ ๋ ๋ฌด์์ผ๊น? setTimeout ๋ด๋ถ์ this๋ window๋ฅผ ๊ฐ๋ฅดํค๊ธฐ ๋๋ฌธ์ด๋ค. ํด๋น ๋ฌธ์ ๋ฅผ ์๋ ์ฝ๋์ ๊ฐ์ด bind, call, apply๋ฅผ ํตํด ์ด๋์ ..
๋ชจ๋ API ํค๋ฅผ ์จ๊ธฐ๊ธฐ ์ํด. env ํ์ผ์ apiํค๋ฅผ ์ ๋ ฅํ๊ณ . gitignore์ ์ง์ ํด ๋ง์ด ์ฌ์ฉํ ๊ฒ์ด๋ค. const dotenv = require('dotenv'); dotenv.config(); ๊ทธ๋ฆฌ๊ณ dotenv๋ฅผ ์์ฑํ๊ณ ๊ฐ๊ฐ APIํค๋ฅผ process.env.0000๋ฅผ ์ฌ์ฉํด ํธ์ถํ ๊ฒ์ด๋ค. const port = process.env.PORT || 3000; mongoose.connect( process.env.MONGO_KEY, { useNewUrlParser: true, useUnifiedTopology: true }, function (err) { if (err) { console.error('mongoDB Connection Error!', err); } console.log('..

billboard.js ๋? C3.js๋ฅผ ๋ค์ด๋ฒ์์ ๋ณํํ์ฌ ๋ถํธํ ๋ถ๋ถ์ ํธ๋ฆฌํ๊ฒ ๋ง๋ค์ด์ ์คํ์์ค๋ก ๋ฐฐํฌํ ๊ฒ์ด๋ค. ์ฐจํธ๋ฅผ ์ฝ๊ฒ ๊ตฌํํ ์ ์๊ณ , ๋ด๋ถ ๋ฉ์๋๋ฅผ ์ฌ์ฉํด ์ฝ๊ฒ ์ฐจํธ๋ฅผ ์กฐ์ํ ์ ์๋ค. https://naver.github.io/billboard.js/ billboard.js billboard.js, the "chart" library The name "billboard" comes from the famous "billboard chart" which everybody knows. billboard.js provides the easiest way to create a 'chart' instantly. Quick Start Guide Step 1. Load billboard.js and..

์๋ฐ์คํฌ๋ฆฝํธ๋ฅผ ์ฌ์ฉํ๋ค๊ฐ 2์ฐจ์ ๋ฐฐ์ด์ ๊น์ ๋ณต์ฌํด์ผํ ์ํฉ์ด ์ฌ ์๋ ์๋ค. ์๋์ฒ๋ผ ์ฐ๋ฆฌ๊ฐ ์๋๋๋ก ์งํํ๋ฉด ์๋ณธ ๋ฐฐ์ด์ ๊ฐ์ด ๊ณ์ ๋ฐ๋๋ ๊ฑธ ํ์ธํ ์ ์๋ค. let arr1 = [[1,2,3],[2,3,4]] let arr2 = [...arr1]; arr2[0][0] = 0; console.log(arr1); // [[0,2,3],[2,3,4]] console.log(arr2); // [[0,2,3],[2,3,4]] ์ด๋ ํฐํ์ธ arr1๋ง ๊น์ ๋ณต์ฌ๊ฐ ๋๊ณ ๊ฐ์ฅ ์ค์ํ ์์ ๋ฐฐ์ด ๊ฐ ํ๋ค์ ๋์ผํ ๊ฐ์ ์ฐธ์กฐํ๊ณ ์๋ค๋ ๊ฑธ(์์ ๋ณต์ฌ) ์๋ฏธํ๋ค. 2์ค ๋ฐฐ์ด์ ๊น์ ๋ณต์ฌํ๋ ค๋ฉด ๊ฐ ํ๋ง๋ค ๋์ผํ๊ฒ ๊น์ ๋ณต์ฌ ํด์ฃผ๋ฉด ๋๋ค. let arr1 = [[1,2,3],[2,3,4]] let arr2 = arr1...