๋ฐ์ํ ์ํ์ฝ๋ฉ85 [์ํ์ฝ๋ฉ-WEB1] ์น์ฌ์ดํธ ์์ฑ [์ถ์ฒ : Youtube - ์ํ์ฝ๋ฉ] https://youtu.be/w5S0GACgL3U?list=PLuHgQVnccGMDZP7FJ_ZsUrdCGH68ppvPb ์ฐ๋ฆฌ๊ฐ ๋ง๋ ์นํ์ด์ง๋ค์ ์ฎ์ด์ ํ๋์ ์น์ฌ์ดํธ๋ก ๋ง๋ค์ด๋ณด์. index.html See the Pen eYvoRxL by ์ด์ค๊ฒฝ (@yunkyung-creator) on CodePen. 1.html See the Pen xxqerBN by ์ด์ค๊ฒฝ (@yunkyung-creator) on CodePen. 2.html See the Pen dyvLzoY by ์ด์ค๊ฒฝ (@yunkyung-creator) on CodePen. 3.html See the Pen OJpGjVg by ์ด์ค๊ฒฝ (@yunkyung-creator) on CodePen. 2021. 6. 20. [์ํ์ฝ๋ฉ-React] State ์ฌ์ฉ [์ถ์ฒ : Youtube - ์ํ์ฝ๋ฉ] https://youtu.be/e2c1EUcW7oo?list=PLuHgQVnccGMCRv6f8H9K5Xwsdyg4sFSdi ์ค๋ ๋ฐฐ์ฐ๋๊ฑด ์ดํดํ๋ คํ์ง๋ง๊ณ ๊ทธ๋ฅ ๊ทธ๋ ๊ตฌ๋ ํ๊ณ ๋ฐ์๋ค์ด๋๊ฒ ํธํ๋ค๊ณ ํ๋ค... โป์ฃผ์ : ๋ฆฌ์กํธ์์๋ props์ ๋ฐ์ดํ๋ฅผ ์ฐ๋ฉด ๋ฌธ์๋ก ์ธ์์ ํ๋ค. ๋ฌธ์๊ฐ ์๋๋ผ ์๋ฐ์คํฌ๋ฆฝํธ์ ์ฝ๋๋ก์ ์คํํ๊ฒํ๊ณ ์ถ์ผ๋ฉด ์ค๊ดํธ{}๋ฅผ ์ฌ์ฉํ๋ฉด ๋๋ค. src/App.js import './App.css'; import TOC from "./components/TOC"; import Content from "./components/Content"; import Subject from "./components/Subject"; import React, { Com.. 2021. 5. 29. [์ํ์ฝ๋ฉ-React] Component ํ์ผ๋ก ๋ถ๋ฆฌํ๊ธฐ [์ถ์ฒ : Youtube - ์ํ์ฝ๋ฉ] https://youtu.be/8hGqznPGVc0?list=PLuHgQVnccGMCRv6f8H9K5Xwsdyg4sFSdi src ๋๋ ํ ๋ฆฌ ์์ components ๋๋ ํ ๋ฆฌ๋ฅผ ์์ฑํ๋ค. components ๋๋ ํ ๋ฆฌ ์์๋ TOC.js๋ผ๋ ํ์ผ์ ์์ฑํ๋ค. TOC.js ํ์ผ์๋ค๊ฐ App.js์ TOC ํด๋์ค๋ฅผ ๋ณต๋ถํ๋ค. ์๋์ ์ฝ๋๋ ๊ฐ์ด ๋ณต๋ถํ๋ค. import React, { Component } from 'react'; 'react๋ผ๋ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์์ Component๋ผ๊ณ ํ๋ ํด๋์ค๋ฅผ ๋ก๋ฉํ๋ค' ๋ผ๋ ๋ป์ด๋ค. ๋ฆฌ์กํธ๋ฅผ ์ฌ์ฉํ ๋ ํ์์ ์ผ๋ก ๋ฃ์ด์ผํ๋ ์ฝ๋๋ผ๊ณ ์๊ฐํ๋ฉด ๋๋ค. TOC๋ผ๋ ํด๋์ค๋ฅผ ์ธ๋ถ์์ ์ฌ์ฉํ ๊ฒ์ ํ์ฉํ๋ ์ฝ๋๋ ์์ฑํ๋ค. export defau.. 2021. 5. 29. [์ํ์ฝ๋ฉ-React] props [์ถ์ฒ : Youtube - ์ํ์ฝ๋ฉ] https://youtu.be/pPCC2JWbPgk?list=PLuHgQVnccGMCRv6f8H9K5Xwsdyg4sFSdi Subject ํด๋์ค๋ฅผ ๋ฆฌํฉํ ๋ง ํด์ค๋ค. import './App.css'; import React, { Component } from 'react'; class Subject extends Component { render() { return ( {this.props.title} {this.props.sub} ); } } class TOC extends Component { render() { return ( HTML CSS JavaScript ); } } class Content extends Component { render() { ret.. 2021. 5. 29. [์ํ์ฝ๋ฉ-React] ์ปดํฌ๋ํธ ๋ง๋ค๊ธฐ 2 [์ถ์ฒ : Youtube - ์ํ์ฝ๋ฉ] https://youtu.be/J3WQKH35f0M?list=PLuHgQVnccGMCRv6f8H9K5Xwsdyg4sFSdi src/App.js import './App.css'; import React, { Component } from 'react'; class Subject extends Component { render() { return ( WEB world wide web! ); } } class TOC extends Component { render() { return ( HTML CSS JavaScript ); } } class Content extends Component { render() { return ( HTML HTML is HyperText.. 2021. 5. 28. [์ํ์ฝ๋ฉ-React] ์ปดํฌ๋ํธ ๋ง๋ค๊ธฐ 1 [์ถ์ฒ : Youtube - ์ํ์ฝ๋ฉ] https://youtu.be/wzii1e_QWgc?list=PLuHgQVnccGMCRv6f8H9K5Xwsdyg4sFSdi ๋จผ์ public ํด๋ ์์ pure.html๊ณผ src ํด๋ ์์ App.js๋ฅผ ์ฐ๋ค. โป์ฃผ์ : Class ์ด๋ฆ์ ๋๋ฌธ์๋ก ์์ํด์ผํ๋ค. โป์ฃผ์ : ์ปดํฌ๋ํธ ์์๋ ๋ฐ๋์ render() ํจ์๊ฐ ํฌํจ๋์ด์ผ ํ๋ค. ์ฝ์๋ก ์คํํ๋ฉด ๋ฌธ๋ฒ ์๋ฌ๊ฐ ๋ฌ๋ค. ์๋ํ๋ฉด ํ๊ทธ๋ฅผ ํํํ๋ < ๊ฐ์ ๊ฒ๋ค์ด ๊ทธ๋๋ก ๋ํ๋์๊ธฐ ๋๋ฌธ์. 2021. 5. 28. ์ด์ 1 2 3 4 ยทยทยท 15 ๋ค์ ๋ฐ์ํ