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.
|
# -*- mode: snippet -*-
|
|
# uuid: 0fccd0f9-2e0c-46e3-88e4-699b6adb680e
|
|
# contributor: Jimmy Yuen Ho Wong <wyuenho@gmail.com>
|
|
# name: hocComponent
|
|
# key: hoc
|
|
# --
|
|
|
|
import React from 'react'
|
|
import PropTypes from 'prop-types'
|
|
|
|
export default (WrappedComponent) => {
|
|
const hocComponent = ({ ...props }) => <WrappedComponent {...props} />
|
|
|
|
hocComponent.propTypes = {
|
|
}
|
|
|
|
return hocComponent
|
|
}
|