함수형 컴포넌트
✔rafce
react arrow functional export component
import React from 'react'
const Blockchain = () => {
return (
<div>
</div>
)
}
export default Blockchain
✔rfc
react functional component
import React from 'react'
export default function Blockchain() {
return (
<div>
</div>
)
}
✔rfce
react functional export component
import React from 'react'
function Blockchain() {
return (
<div>
</div>
)
}
export default Blockchain
클래스형 컴포넌트
✔rcc
react class component
import React, { Component } from 'react'
export default class Blockchain extends Component {
render() {
return (
<div>
</div>
)
}
}
✔rce
react class export component
import React, { Component } from 'react'
export class Blockchain extends Component {
render() {
return (
<div>
</div>
)
}
}
export default Blockchain
'React.js' 카테고리의 다른 글
22.04.28 setState 변경값 바로바로 useState 비동기식 처리 (0) | 2022.04.28 |
---|---|
21.11.06 import {} or not (0) | 2021.11.06 |
21.06.05 Virtual DOM (0) | 2021.06.06 |
21.04.28 useSelector, useEffect, useDispatch (0) | 2021.04.30 |
21.04.27 redux, axios 로그인 상태 관리 프로세스 (0) | 2021.04.27 |