๐น์ค๋ ํ ์ผ
React ํ์ต
- React ํจ์ํ, ํด๋์คํ ๊ตฌ์กฐ
- Component
- Props
- State
- event
- bind
- preventDefault
github markdown ์์ฑ๋ฒ
- VSCode์์ mdํ์ผ ๋ฏธ๋ฆฌ๋ณด๊ธฐ ๋จ์ถํค: Ctrl + Shift + V
- github ๋ฐฐํฌ์ codeblock ํ๋ ๋ฐฉ๋ฒ (๊ฐ์ธ์ ์ผ๋ก ๋ฐฑํฑ์ด ๋ ํธํ๋ฏ)
- ``` ``` (๋ฐฑํฑ)
```javascript class Subject extends Component{ render(){ return ( <header> <h1>{this.props.title}</h1> {this.props.sub} </header> ); } } class App extends Component{ render(){ return ( <div className="App"> <Subject title="WEB" sub="world wid web!"></Subject> </div> ); } } ```
- <pre><code>
<pre> <code> class Subject extends Component{ render(){ return ( <header> <h1>{this.props.title}</h1> {this.props.sub} </header> ); } } class App extends Component{ render(){ return ( <div className="App"> <Subject title="WEB" sub="world wid web!"></Subject> </div> ); } } </code> </pre>
์ฐธ๊ณ ์ฌ์ดํธ: https://gist.github.com/ihoneymon/652be052a0727ad59601
'Daily > Today I Learned' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
22.04.28_TIL (0) | 2022.04.28 |
---|---|
22.04.27_TIL (0) | 2022.04.27 |
22.04.26_TIL (0) | 2022.04.26 |
20220425_TIL (0) | 2022.04.25 |
20220406_TIL (0) | 2022.04.06 |