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.

22 lines
427 B

4 years ago
  1. # -*- mode: snippet -*-
  2. # uuid: a85f3fea-065d-499b-a297-b6e3f516c2d7
  3. # contributor: Jimmy Yuen Ho Wong <wyuenho@gmail.com>
  4. # name: reactArrowFunctionComponentWithPropTypes
  5. # key: rafcp
  6. # --
  7. import React from 'react'
  8. import PropTypes from 'prop-types'
  9. const ${1:${TM_FILENAME_BASE}} = props => {
  10. return (
  11. <div>
  12. $0
  13. </div>
  14. )
  15. }
  16. ${1:${TM_FILENAME_BASE}}.propTypes = {
  17. }
  18. export default ${1:${TM_FILENAME_BASE}}