import PropTypes from 'prop-types';
      import React from 'react';
      import { connect } from 'react-redux';
      
      export const ${1:filename} = (props) => {
        return (
          <div>first</div>
        )
      }
      
      ${1:filename}.propTypes = {
        second: PropTypes.third
      }
      
      const mapStateToProps = (state) => ({})
      
      const mapDispatchToProps = {}
      
      export default connect(mapStateToProps, mapDispatchToProps)(${1:filename})

      Javascript language logoreactFunctionalComponentReduxPropTypes

      JavaScript snippets for React

      Shortcut: rfcreduxp

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.