reactivebase icon indicating copy to clipboard operation
reactivebase copied to clipboard

Inconsistency between `types` and `propTypes`

Open dhruvdutt opened this issue 8 years ago • 1 comments

In cases, when PropTypes.oneOf is used, the type specifies only a single type.

Component.propTypes = {
  title: React.PropTypes.oneOfType([
      React.PropTypes.string,
      React.PropTypes.element
  ])
}
Component.types = {
  title: TYPES.STRING
}

dhruvdutt avatar Sep 09 '17 11:09 dhruvdutt

Update: We will come back to this issue when we start working with Reactive Apps. Right now, this doesn't affect any of the libraries.

siddharthlatest avatar Oct 11 '17 11:10 siddharthlatest