Skip to content

Instantly share code, notes, and snippets.

@blue-bird1
Created October 14, 2018 09:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blue-bird1/4540d01cc1b4bef32df05711a7bcd62e to your computer and use it in GitHub Desktop.
Save blue-bird1/4540d01cc1b4bef32df05711a7bcd62e to your computer and use it in GitHub Desktop.
temple react and redux #templeate
import React from 'react';
class %CLASS% extends React.Component {
render(){
}
}
export default %CLASS%
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