components
components 특징
Components 종류
1) Class Component
import React from 'react'
class Component extends React.Component {
render() {
return (
<div>
<h1>This is Class Component!</h1>
</div>
)
}
}
export default Component
2) Functional Component
import React from 'react'
function Component(){
return (
<div>
<h1>This is Functional Component!</h1>
</div>
)
};
export default Component
특징