atom-react-autocomplete
atom-react-autocomplete copied to clipboard
enhancement: parse additional proptypes from other components
I have a Wrapper component that wraps another component and needs to expose its propTypes up the chain, so I was trying something like this:
TextInput.propTypes = { ...WrappedComponent.propTypes }
I would love for this to be able to inherit these propTypes from the related component