@crabas0npm/corporis-labore-corporis

1.0.0 • Public • Published

@crabas0npm/corporis-labore-corporis Version Badge

Build Status dependency status dev dependency status License Downloads

npm badge

For use with React PropTypes. Will error on any prop not explicitly specified.

Usage

import PropTypes from 'prop-types';
import exact from '@crabas0npm/corporis-labore-corporis';

function Foo({ foo, bar }) {
  return <div>{foo}{bar}</div>
}
Foo.propTypes = exact({
  foo: PropTypes.string,
  bar: PropTypes.number,
});

<Foo foo="hi" bar={3} /> // no warnings

<Foo foo="hi" bar={3} baz="extra" /> // propTypes warning!

Tests

Simply clone the repo, npm install, and run npm test

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.00latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.00

Package Sidebar

Install

npm i @crabas0npm/corporis-labore-corporis

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

15.2 kB

Total Files

10

Last publish

Collaborators

  • thanhl4861