react component in react component code example
Example: react component
/* React Component Template */
export default class MyComponent extends React.Component {
constructor(props) {
super(props);
this.state = {
//state properties here
};
}
render() {
return (
<div></div>
);
}
}