typescriptReactClassExportComponent

    0

    2

    lucycodes42

    JavaScript snippets for React

    Library: react

    Shortcut: tsrce

    import React, { Component } from 'react';
    
    type Props = {}
    
    type State = {}
    
    class ${1:filename} extends Component<Props, State> {
      state = {}
    
      render() {
        return (
          <div>first</div>
        )
      }
    }
    
    export default ${1:filename}
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.