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
422 B

5 years ago
  1. # -*- mode: snippet -*-
  2. # uuid: f24b6de3-135e-4da0-81d9-0f479f3b11dd
  3. # contributor: Jimmy Yuen Ho Wong <wyuenho@gmail.com>
  4. # name: reactFunctionalComponentWithPropTypes
  5. # key: rfcp
  6. # --
  7. import React from 'react'
  8. import PropTypes from 'prop-types'
  9. function ${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}}