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

4 years ago
  1. # -*- mode: snippet -*-
  2. # uuid: ba569173-16e1-4d9d-9205-96dc0832455f
  3. # contributor: Jimmy Yuen Ho Wong <wyuenho@gmail.com>
  4. # name: reactFunctionMemoComponentWithPropTypes
  5. # key: rmcp
  6. # --
  7. import React, { memo } from 'react'
  8. import PropTypes from 'prop-types'
  9. const ${1:${TM_FILENAME_BASE}} = memo(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}}