Klimi's new dotfiles with stow.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

34 lines
648 B

# -*- mode: snippet -*-
# uuid: c948b832-8ff1-41b2-a256-ce629dcd4dbe
# contributor: Jimmy Yuen Ho Wong <wyuenho@gmail.com>
# name: reactClassCompomentRedux
# key: rcredux
# --
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
export class ${1:${TM_FILENAME_BASE}} extends Component {
static propTypes = {
${2:prop}: ${3:PropTypes}
}
render() {
return (
<div>
$0
</div>
)
}
}
const mapStateToProps = (state) => ({
})
const mapDispatchToProps = {
}
export default connect(mapStateToProps, mapDispatchToProps)(${1:${TM_FILENAME_BASE}})