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

4 years ago
  1. # -*- mode: snippet -*-
  2. # uuid: f8a0e704-88a4-4c72-8b9e-44fcf0290ae7
  3. # contributor: Jimmy Yuen Ho Wong <wyuenho@gmail.com>
  4. # name: reactClassCompomentPropTypes
  5. # key: rccp
  6. # --
  7. import React, { Component } from 'react'
  8. import PropTypes from 'prop-types'
  9. export default class ${1:${TM_FILENAME_BASE}} extends Component {
  10. static propTypes = {
  11. ${2:prop}: ${3:PropTypes}
  12. }
  13. render() {
  14. return (
  15. <div>
  16. $0
  17. </div>
  18. )
  19. }
  20. }