Daily/Today I Learned

20220405_TIL

ํ˜ธ๋ฐ€์ด 2022. 4. 5. 11:43

๐Ÿ”น์˜ค๋Š˜ ํ•œ ์ผ

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