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.

17 lines
393 B

5 years ago
  1. # -*- mode: snippet -*-
  2. # uuid: 0fccd0f9-2e0c-46e3-88e4-699b6adb680e
  3. # contributor: Jimmy Yuen Ho Wong <wyuenho@gmail.com>
  4. # name: hocComponent
  5. # key: hoc
  6. # --
  7. import React from 'react'
  8. import PropTypes from 'prop-types'
  9. export default (WrappedComponent) => {
  10. const hocComponent = ({ ...props }) => <WrappedComponent {...props} />
  11. hocComponent.propTypes = {
  12. }
  13. return hocComponent
  14. }