0
0
llucycodes42
The following code is creating a React PureComponent. A PureComponent is a class which does not contain any state or react components. When a PureComponent is created, it is initialized with a specific filename. The code next renders a simple div element.
Library: react
Shortcut: rpc
import React, { PureComponent } from 'react';
export default class ${1:filename} extends PureComponent {
render() {
return (
<div>first</div>
)
}
}