how to add a react component from react community code example
Example: how to create component in reactjs
class Car extends React.Component {
render() {
return <h2>Hi, I am a Car!</h2>;
}
}
class Car extends React.Component {
render() {
return <h2>Hi, I am a Car!</h2>;
}
}