๋ถ๋ฅ ์ ์ฒด๋ณด๊ธฐ
![[๋ฆฌ์กํธ] ํ๊ฒฝ์ค์ ](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Fb0qT2G%2FbtrBq8baxUq%2FA622jOBEEmxFFbXiLR1ns1%2Fimg.png)
[๋ฆฌ์กํธ] ํ๊ฒฝ์ค์
์์ฝ: npx create-react-app ํด๋๋ช npm start ์ฑ๊ธํ์ด์ง์ ํ๋ฆฌ์ผ์ด์ ์ธ ๋ฆฌ์กํธ๋ ๋งค ํ์ด์ง๋ฅผ ์ ํํ๋ ๊ฒ์ด ์๋๋ผ ์๋ฐ์คํฌ๋ฆฝํธ๋ก ํ๋์ HTML ํ์ด์ง ์์์ ๊ณ์ ์๋ก์ด ๊ทธ๋ฆผ์ ๊ทธ๋ ค๋๊ฐ๋ ํ์(์์ ์๋ ๋ด์ฉ๋ง ๊ณ์ ๋ฐ๊ฟ์ค)์ผ๋ก, ํ์ด์ง๊ฐ ์ฌ๋ฌ๊ฐ์ธ ๊ฒ์ฒ๋ผ ๋ณด์ด๊ฒ๋ ํ๋ค. ์ฆ, ์น์ ์ฑ์ฒ๋ผ ๋ณด์ฌ์ฃผ๊ฒ ๋ง๋๋ ๋์์์ ๊ฐ๋ฅ์ผ ํ๋ค. 1: Nodejs ์ค์นํ๊ธฐ node -v ๋ช ๋ น์ด๋ฅผ ํตํด nodejs๊ฐ ์ค์น ํ์ธ npm : Node Package Manager. NodeJS๋ก ๊ฐ๋ฐ๋ ๋ชจ๋๋ค์ ์ค์นํ๊ณ ๊ด๋ฆฌํด์ฃผ๋ ํจํค์ง ๋งค๋์ ธ nodeJS๋ก ๋ง๋ค์ด์ง ์ ์ฉํ ๋ชจ๋๋ค์ ๊ฐ์ ธ๋ค ์ฐ๊ณ ๊ด๋ฆฌ 2: ํ๋ก์ ํธ ์์ : ๋ฆฌ์กํธ์ ํ์ํ ํจํค์ง๋ฅผ ์๋์ผ๋ก ์ค์นํด์ฃผ๋ ๋ช ๋ น์ด ์ ๋ ฅ ํ๋ก์ ํธ๋ฅผ ์ค์นํ๊ณ ์ถ์ ๊ฒฝ๋ก..
[ํ์ ์คํฌ๋ฆฝํธ] declare namespace
https://velog.io/@kmp1007s/Typescript-%EB%AA%A8%EB%93%88%EA%B3%BC-%EA%B4%80%EB%A0%A8%EB%90%9C-%EC%9D%B4%EC%95%BC%EA%B8%B0
![[์๋ฐ์คํฌ๋ฆฝํธ] how to set query in url javascript](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Fbzve4E%2FbtrBltk59sP%2Fxu47N1yb1KY6B0KmEYQZ11%2Fimg.png)
[์๋ฐ์คํฌ๋ฆฝํธ] how to set query in url javascript
Adding a parameter to the URL with JavaScript - Stack Overflow Adding a parameter to the URL with JavaScript In a web application that makes use of AJAX calls, I need to submit a request but add a parameter to the end of the URL, for example: Original URL: http://server/myapp.php?id=10 Resulting URL... stackoverflow.com You can use one of these: https://developer.mozilla.org/en-US/docs/Web/API/U..
[ํ์ ์คํฌ๋ฆฝํธ] .d.ts ์ ๋ํ ์ดํด
https://typescript-kr.github.io/pages/declaration-files/creating-dts-files-from-js.html https://spookyjelly.tistory.com/39 .d.ts ์ ๋ํ ์ดํด๊ฐ ์์ด์ผ ํ๋ค. Js ํ์ผ์ js ํ์ผ๋ผ๋ฆฌ๋ง ๋ฐ๋ผ๋ณผ ์ ์๋ค Ts ํ์ผ์ ts ํ์ผ๋ผ๋ฆฌ๋ง ๋ฐ๋ผ๋ณผ ์ ์๋ค TypeScript 3.7์์, TypeScript๋ JSDoc ๊ตฌ๋ฌธ์ ์ฌ์ฉํ JavaScript์์ .d.ts ํ์ผ์ ์์ฑํ ์ ์๊ฒ ๋์๋ค. ๐.d.ts ํ์ผ์ ๊ธฐ์กด JS ๋ชจ๋์ ํ์ ์คํฌ๋ฆฝํธ์์ ์ฌ์ฉํ๊ธฐ ์ฉ์ดํ๋๋ก ๊ธฐ์กด JS ๋ชจ๋์ ํ์ ์ ๋ณด๋ฅผ ๋ณ๋์ ํ์ผ๋ก ์ ์ธํ๊ฒ๐ ๐งจd.ts ํ์ผ์ ํ์ ์ ์ธ๋ง ์ด๋ฃจ์ด์ง์ ์ ์๐งจ d.ts ์์ฑ๋ฒ @types ์์ ํด๋น ๋ชจ๋..
[์์คํธ๋ฆฌ] git stash
https://www.lainyzine.com/ko/article/git-stash-usage-saving-changes-without-commit/ git stash ์ฌ์ฉ๋ฒ: ์ปค๋ฐํ์ง ์๊ณ ๋ณ๊ฒฝ์ฌํญ ์ ์ฅํ๋ ๋ฐฉ๋ฒ git stash ๋ช ๋ น์ด์ผ๋ก Git ์ ์ฅ์์ ๋ณ๊ฒฝ์ฌํญ์ ์์๋ก ์คํ์ ์์๋ ์ ์์ต๋๋ค. ์ด ๊ธ์์๋ stash๋ฅผ ์ฌ์ฉํด ๋ณ๊ฒฝ์ฌํญ์ ์ ์ฅํ๊ณ ๋ค์ ๊บผ๋ด์ค๋ ๋ฐฉ๋ฒ์ ๋ํด์ ์๊ฐํฉ๋๋ค. www.lainyzine.com stash์ ๊ฐ์ฅ ์ค์ํ ๊ธฐ๋ฅ์ ์ปค๋ฐ๋์ง ์์ ๋ณ๊ฒฝ์ฌํญ์ ์คํ์ ์์๋๊ณ , ์ด๊ฑธ ๋ค์ ๊บผ๋ด์ค๋ ๊ธฐ๋ฅ ๋ค๋ฅธ ์ปค๋ฐ์ด ์ถ๊ฐ๋์ด์๋ ์ํ๋ ์ฌ์ง์ด ๋ค๋ฅธ ๋ธ๋์น์์ ๊บผ๋ด๋ ๊ฒ๋ ๊ฐ๋ฅ https://blog.naver.com/PostView.nhn?isHttpsRedirect=true&blo..
![์๋ฐ์คํฌ๋ฆฝํธ ๋ผ์ด๋ธ๋ฌ๋ฆฌ ๋ชฉ๋ก](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FbtFa0P%2FbtrA3hGqtm9%2FLFTIQ9AJ9kDipJdWns17yK%2Fimg.png)
์๋ฐ์คํฌ๋ฆฝํธ ๋ผ์ด๋ธ๋ฌ๋ฆฌ ๋ชฉ๋ก
https://ko.wikipedia.org/wiki/%EC%9E%90%EB%B0%94%EC%8A%A4%ED%81%AC%EB%A6%BD%ED%8A%B8_%EB%9D%BC%EC%9D%B4%EB%B8%8C%EB%9F%AC%EB%A6%AC_%EB%AA%A9%EB%A1%9D ์๋ฐ์คํฌ๋ฆฝํธ ๋ผ์ด๋ธ๋ฌ๋ฆฌ ๋ชฉ๋ก - ์ํค๋ฐฑ๊ณผ, ์ฐ๋ฆฌ ๋ชจ๋์ ๋ฐฑ๊ณผ์ฌ์ ์๋ฐ์คํฌ๋ฆฝํธ ๋ผ์ด๋ธ๋ฌ๋ฆฌ ๋ชฉ๋ก ์ํค๋ฐฑ๊ณผ, ์ฐ๋ฆฌ ๋ชจ๋์ ๋ฐฑ๊ณผ์ฌ์ . ko.wikipedia.org https://ko.khanacademy.org/computing/computer-programming/html-css-js/using-js-libraries-in-your-webpage/a/the-world-of-js-libraries JS ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ์ธ๊ณ (๊ฐ๋ ์ดํดํ๊ธฐ) | Kh..
[ํ์ ์คํฌ๋ฆฝํธ] ! Non-null assertion operator
!: ์ด๋? ๋๋ํ๋ฅผ ์ง์ฐ๊ณ ๋์ค๋ ์๋ฌ : 'ui'์(๋) ์ด๋์ ๋ผ์ด์ ๊ฐ ์๊ณ ์์ฑ์์ ํ ๋น๋์ด ์์ง ์์ต๋๋ค.ts(2564) ํ์ ์คํฌ๋ฆฝํธ๊ฐ ํน์ null์ผ์ง๋ ๋ชจ๋ฅด๋ ๋์์ ์ปดํ์ผ์๋ฌ๋ผ์ธ ๋์์ฃผ๋๋ฐ ํ๋ก๊ทธ๋๋จธ๊ฐ null์ด ์๋๋ผ๊ณ ํ์ ์ด ์์๋์ TSC Null์ฒดํฌ์ ์์ธ ์ฒ๋ฆฌ ํด์ฃผ๋ ๊ฒ https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-0.html#non-null-assertion-operator Non-null assertion operator A new ! post-fix expression operator may be used to assert that its operand is non-null and non-und..
"ํ์ด์ง๊ฐ ์๋ค" 404 error๋
์ ์์ฝ : 404 ์๋ฌ ํด๋ผ์ด์ธํธ๊ฐ ์๋ฒ์ ํต์ ํ ์๋ ์์ง๋ง ์๋ฒ๊ฐ ์์ฒญํ ๋ฐ๋ฅผ ์ฐพ์ ์ ์๋ค๋ ๊ฒ์ ๊ฐ๋ฆฌํค๋ HTTP ํ์ค ์๋ต ์ฝ๋ ๋ณดํต HTTP์์ ์ฌ์ฉ์๊ฐ ์์ฒญํ๋ ํ์ด์ง๋ ํ์ผ์ ์ฐพ์ ์ ์์ ๋ ๊ฐ์ฅ ๋ง์ด ๋ฐ์ 404 ์ค๋ฅ๋ ํ์ด์ง๊ฐ ์ด๋๋๊ฑฐ๋ ์ญ์ ๋์์ ๋ ์์ฃผ ๋ฐํ๋๋ค. 404์๋ฌ ํด๊ฒฐ ๋ฐฉ๋ฒ - ์ฌ์ฉ์์ ๊ฒฝ์ฐ ์ ๋ ฅํ URL ์ฌํ์ธ ์๋ก ๊ณ ์นจ ๋ฐ ์บ์ ์ญ์ ์ผ์์ ์ธ ํ์์ธ์ง ํ์ธํ๊ธฐ ์ํด์ ์๋ก ๊ณ ์นจ ๋ฐ ๋ธ๋ผ์ฐ์ ์บ์๋ฅผ ์ญ์ ํด๋ณด๊ธฐ - ๊ด๋ฆฌ์์ ๊ฒฝ์ฐ ๋๋ฉ์ธ ๋ค์์๋ฒ ์ ๋ณด ํ์ธ ๋๋ฉ์ธ ๋ค์์๋ฒ๊ฐ ์ฌ๋ฐ๋ฅด๊ฒ ์ค์ ๋์ด์๋์ง ํ์ธ ํ์ด์ง ๋ณ๊ฒฝ ์ด๋ ฅ ๋ฐ ๋๋ ํ ๋ฆฌ ํ์ธ ํ์ด์ง ๋ณ๊ฒฝ ์ด๋ ฅ์ด๋ ๋๋ ํ ๋ฆฌ๊ฐ ์ ์ค์ ๋์ด์๋์ง ํ์ธ ํด๋ผ์ด์ธํธ๊ฐ ์๋ฒ์ ํต์ ํ ์๋ ์์ง๋ง ์๋ฒ๊ฐ ์์ฒญํ ๋ฐ๋ฅผ ์ฐพ์ ์ ์๋ค๋ ๊ฒ์ ..