import React, { PureComponent } from 'react';
      export class ${1:filename} extends PureComponent {
        render() {
          return (
      export default ${1:filename}

      Javascript language logo
      your recipe card header background

      JavaScript snippets for React

      In this code, React is importing PureComponent from React. PureComponent is a react component library that helps you to create pure, unmounted, stateless components. The exports in this code exports a class named ${1:filename} which extends PureComponent. The constructor for this class takes one parameter, which is the filename of the component. This class renders a div with the text first.

      Shortcut: rpce


        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.