How to use the @instructure/ui-prop-types.childrenOrValue function in @instructure/ui-prop-types

To help you get started, we’ve selected a few @instructure/ui-prop-types examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github instructure / instructure-ui / packages / ui-utils / src / react / CustomPropTypes.js View on Github external
childrenOrValue (...args) {
    warnDeprecatedComponent('v5.45.0', 'childrenOrValue', changedPackageWarning(
      'ui-utils',
      'ui-prop-types'
    ))
    return childrenOrValue(...args)
  }