import React, { Component } from 'react'
export default class filename extends Component {
render() {
return <div></div>
}
}
React class component
In this code, the filename class is exported and then used as a component. The filename class defines one method, render, which returns a div.
Shortcut: react.component.class.create
0 Comments
Add Comment
Log in to add a comment