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.

33 lines
648 B

4 years ago
  1. # -*- mode: snippet -*-
  2. # uuid: c948b832-8ff1-41b2-a256-ce629dcd4dbe
  3. # contributor: Jimmy Yuen Ho Wong <wyuenho@gmail.com>
  4. # name: reactClassCompomentRedux
  5. # key: rcredux
  6. # --
  7. import React, { Component } from 'react'
  8. import PropTypes from 'prop-types'
  9. import { connect } from 'react-redux'
  10. export class ${1:${TM_FILENAME_BASE}} extends Component {
  11. static propTypes = {
  12. ${2:prop}: ${3:PropTypes}
  13. }
  14. render() {
  15. return (
  16. <div>
  17. $0
  18. </div>
  19. )
  20. }
  21. }
  22. const mapStateToProps = (state) => ({
  23. })
  24. const mapDispatchToProps = {
  25. }
  26. export default connect(mapStateToProps, mapDispatchToProps)(${1:${TM_FILENAME_BASE}})