import React from 'react'
import ReactDOM from 'react-dom'
class Hello extends React.Component {
render () {
return <div className='message-box'>
Hello {this.props.name}
</div>
}
}
class ComponentName extends React.Component {
render() {
return ;
}
}
export default ComponentName;
// New component class starts here:
class Friend extends React.Component {
render() {
const friend = friends[0];
return (
<div>
<h1>{friend.title}</h1>
<img src={friend.src}/>
</div>
);
}
}
// class component in react
class ClassComponent extends React.Component{
constructor(props){
super(props);
};
render(){
return(
<div>
<h1> React Class Component</h1>
</div>
);
}
};
class component extends Component<props> {
constructor(props: props) {
}
render() {
<h1>Hellow world</h1>
}
}