typescriptReactClassComponentRedux

    0

    2

    lucycodes42

    JavaScript snippets for React

    Library: react

    Shortcut: tsrcredux

    import { connect } from 'react-redux'
    import React, { Component } from 'react'
    
    type Props = {}
    
    type State = {}
    
    export class ${1:filename} extends Component<Props, State> {
      state = {}
    
      render() {
        return (
          <div>first</div>
        )
      }
    }
    
    const mapStateToProps = (state) => ({})
    
    const mapDispatchToProps = {}
    
    export default connect(mapStateToProps, mapDispatchToProps)(${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.