your recipe card header background

    reactClassComponent

    0

    2

    lucycodes42

    JavaScript snippets for React

    This code imports React and Component from react and declares a class named ${1:filename} that extends Component. This class has a render() function that returns a <div> element with the value first.

    Library: react

    Shortcut: rcc

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