your recipe card header background

    typescriptReactClassPureComponent

    0

    0

    lucycodes42

    JavaScript snippets for React

    This code imports React and PureComponent and creates a new class called filename which extends PureComponent. The class has one render method which returns a div.

    Library: react

    Shortcut: tsrpc

    import React, { PureComponent } from 'react'
    
    type Props = {}
    
    export default class ${1:filename} extends PureComponent<Props> {
      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.