Notice
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
Tags
- flutter
- google search console
- Anaconda
- inheritedWidget
- uni_links
- python
- 워드파일
- GIT
- Device
- annotation
- 개역개정
- Flask
- handlebars.js
- 소스제공
- velocity_x
- 미색인
- 성경필사
- vscdoe
- zani
- Jupyter Notebook
- cache
- Share
- widgetsBindingObserver
- dart
- ipykernel
- extention
- git설치
- receive_sharing_intent
- 생명주기
- dynamic color
Archives
- Today
- Total
자니노트
2. React Component ? 본문
import React from 'react';
class MyComponent extends React.Component {
constructor(props) { // 생성함수
super(props);
}
componentDidMount() { // 상속받은 생명주기 함수
}
render() { // 상속받은 화면 출력 함수, 클래스형 컴포넌트는 render() 필수
return <div>Hello, {this.props.name}</div>;
}
}
export default MyComponent; //다른 JS파일에서 불러올 수 있도록 내보내주기
출처: https://goddaehee.tistory.com/299 [갓대희의 작은공간:티스토리]
'Frontend > React' 카테고리의 다른 글
1. React Project 생성 및 실행 (0) | 2022.07.15 |
---|
Comments