0
23
JRJose Romero
createreactcomponentβ’β’β’
React TypeScript RecipesIn this code, the filename class is exported and then used as a component. The filename class defines one method, render, which returns a div.
Library: react
Shortcut: react.component.class.create
import React, { Component } from 'react'
export default class filename extends Component {
render() {
return <div></div>
}
}