๋ฐ์ํ JavaScript168 [์ํ์ฝ๋ฉ-React] CSS ์ฝ๋ฉํ๋ ๋ฒ [์ถ์ฒ : Youtube - ์ํ์ฝ๋ฉ] https://youtu.be/FbNvDu-XTVg?list=PLuHgQVnccGMCRv6f8H9K5Xwsdyg4sFSdi CSS๋ index.css์์ ์์ ํ ์ ์๋ค. 2021. 4. 21. [์ํ์ฝ๋ฉ-React] JS ์ฝ๋ฉํ๋ ๋ฒ [์ถ์ฒ : Youtube - ์ํ์ฝ๋ฉ] https://youtu.be/LEPiRfPD9Uw?list=PLuHgQVnccGMCRv6f8H9K5Xwsdyg4sFSdi public index.html ํ์ผ์ด ์๋ ๊ณณ์. index.html ์์ id๊ฐ root์ธ ๊ณณ ํ๊ทธ ์์ชฝ์ ์ปดํฌ๋ํธ๊ฐ ๋ค์ด๊ฐ๋๋ก create-react-app์ ์ฝ์ํ์. src ์ปดํฌ๋ํธ๋ src ์์ ์๋ ํ์ผ๋ค์ ์์ ํด์ ๋ง๋ฌ. ์์ผ๋ก ๊ฐ๋ฐ์์ ์ ํ๊ฒ๋๋ฉด ๋๋ถ๋ถ์ ํ์ผ์ src ์์ ๋ฃ๊ฒ ๋ ๊ฒ์. ๊ทธ์ค์์ entryํ์ผ, ์ฆ ์ง์ ํ์ผ์ index.js ํ์ผ์. ์์ ๋ฐ์ค ์น ๋ถ๋ถ์ ๊ธฐ๋ฐ์ผ๋ก ํด์ public์ index.html ํ์ผ์ ์์ ํ๋ค. ์์ ๋ฐ์ค ์น ์ react๋ฅผ ํตํด ๋ง๋ ์ฌ์ฉ์ ์ ์ ์ปดํฌ๋ํธ์ด๋ค. ์ ์ปดํฌ๋ํธ์ ์ค์ ๊ตฌ.. 2021. 4. 19. [์ํ์ฝ๋ฉ-React] ์ํ ์น์ฑ ์คํ [์ถ์ฒ : Youtube - ์ํ์ฝ๋ฉ] https://youtu.be/O58tOX0CtoY?list=PLuHgQVnccGMCRv6f8H9K5Xwsdyg4sFSdi terminal์ ์คํํ ํ ๋ค์๊ณผ ๊ฐ์ด ๋ช ๋ น์ด๋ฅผ ์ ๋ ฅํ๋ค. npm run start ์คํํ๋ฉด ์๋์ ๊ฐ์ ์ฐฝ์ด ๋ฌ๋ค. โ npm์ ๋๊ณ ์ถ์๋ ctrl + c ๋ฅผ ์ ๋ ฅํ๋ค. 2021. 4. 19. [์ํ์ฝ๋ฉ-React] create-react-app์ ์ด์ฉํด์ ๊ฐ๋ฐํ๊ฒฝ๊ตฌ์ถ [์ถ์ฒ : Youtube - ์ํ์ฝ๋ฉ] https://www.youtube.com/watch?v=C9l-dQTeW7k&list=PLuHgQVnccGMCRv6f8H9K5Xwsdyg4sFSdi&index=5 1. ๋จผ์ Node.js์ create-react-app์ ์ค์นํ๋ค (์ค์น&์ธํ ๋ฒ ์นดํ ๊ณ ๋ฆฌ์ ์์) 2. react-app์ด๋ผ๋ ํด๋๋ฅผ ์์ฑํ๋ค. 3. cmd ์ฐฝ์ ๋์ฐ๊ณ ๊ฒฝ๋ก๋ฅผ react-app ํด๋๋ก ์ค์ ํ๋ค. ๊ทธ๋ฆฌ๊ณ ๋ค์๊ณผ ๊ฐ์ด ๋ช ๋ น์ด๋ฅผ ์ ๋ ฅํ๋ค. create-react-app . โ ์ฃผ์ create-react-app์ด ์ต์ ๋ฒ์ ์ด ์๋๋ฉด ์ต์ ๋ฒ์ ์ผ๋ก ์ฌ์ค์นํด์ผํจ!! ์ค์น : npm install -g create-react-app ์ ๊ฑฐ : npm uninstall -g create-react-app.. 2021. 4. 18. React(๋ฆฌ์กํธ)์ ์ฅ์ -๊ฐ๋ ์ฑ -์ฌ์ฌ์ฉ์ฑ -์ ์ง๋ณด์ 2021. 4. 15. [๋ฐ๋๋ผJS๋ก ํฌ๋กฌ ์ฑ ๋ง๋ค๊ธฐ] Getting the Weather part Two API [์ถ์ฒ-์ ํ๋ธ ๋ ธ๋ง๋ ์ฝ๋ Nomad Coders] https://youtu.be/l6hSze8vgVo index.html 00:00 weather.js const weather = document.querySelector(".js-weather"); const API_KEY = "f97c1ed1e4b50ed233ccabf8c1ea2011"; const COORDS = 'coords'; function getWeather(lat, lng){ fetch( `https://api.openweathermap.org/data/2.5/weather?lat=${lat}&lon=${lng}&appid=${API_KEY}&units=metric` ).then(function(response){ return respon.. 2021. 3. 3. ์ด์ 1 ยทยทยท 10 11 12 13 14 15 16 ยทยทยท 28 ๋ค์ ๋ฐ์ํ