HoC with custom prop name
export default (propName = 'myDefaultProp') => Component => props => ( | |
<Component {...props} {...{ [propName]: 123 }} /> | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment