A factory to omit react props by propTypes
A case is when you don't have destruction in class render method and want to keep in clean and readable.
; const PROP_TYPES = children: PropTypesnode ;const omit = ; static propTypes = PROP_TYPES; <div ...> thispropschildren </div>
In functions you normally use destruction:
const MyComponent = <div ...rest> children </div>;