0
3
llucycodes42
First, we import React and Component. Next, we define a type Props and type State. The State type will store the current user's data. Next, we export the class. Finally, we define a render() method which will return a div.
Library: react
Shortcut: tsrcc
import React, { Component } from 'react';
type Props = {}
type State = {}
export default class ${1:filename} extends Component<Props, State> {
state = {}
render() {
return (
<div>first</div>
)
}
}