Created
October 14, 2018 09:30
-
-
Save blue-bird1/4540d01cc1b4bef32df05711a7bcd62e to your computer and use it in GitHub Desktop.
temple react and redux #templeate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
class %CLASS% extends React.Component { | |
render(){ | |
} | |
} | |
export default %CLASS% | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { connect } from 'react-redux'; | |
const mapStateToProps = state => ({ | |
}) | |
const mapDispatchToProps = dispatch => ({ | |
}) | |
class %CLASS% extends React.Component { | |
render(){ | |
} | |
} | |
export default connect(mapStateToProps, mapDispatchToProps)(%CLASS%); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment