your recipe card header background

    reactClassPureComponent

    0

    0

    lucycodes42

    JavaScript snippets for React

    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>
        )
      }
    }
    
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.