react-value-or-type

custom prop validator to accept a single value or a type.

Usage no npm install needed!

<script type="module">
  import reactValueOrType from 'https://cdn.skypack.dev/react-value-or-type';
</script>

README

custom prop validator to accept a single value or a type.