Displaying 1 to 20 from 22 results

babel-plugin-transform-react-remove-prop-types - Remove unnecessary React propTypes from the production build

  •    Javascript

Remove unnecessary React propTypes from the production build. Remove React propTypes from the production build, as they are only used in development. You can save bandwidth by removing them.

react-fake-props - 🔮 Simple utility to magically generate fake props for your React tests

  •    Javascript

react-fake-props parses your Component prop types using react-docgen and generates fake props. Supports Flow and PropTypes. Works great with Jest snapshots and Enzyme.To include optional props, pass { optional: true }.

babel-plugin-flow-react-proptypes - A babel plugin to generate React PropTypes definitions from Flow type declarations

  •    Javascript

A babel plugin to generate React PropTypes definitions from Flow type declarations. Starting in 14.0.0, we output ES6 import/export statements by default. The deadCode option (explained below) will cause it to use common.js modules instead.

prop-types - Custom React PropType validators that we use at Airbnb.

  •    Javascript

Custom React PropType validators that we use at Airbnb. Use of airbnb-js-shims or the equivalent is recommended.Since PropTypes are typically not included in production builds of React, this library’s functionality serves no useful purpose. As such, when the NODE_ENV environment variable is "production", instead of exporting the implementations of all these prop types, we export mock functions - in other words, something that ensures that no exceptions are thrown, but does no validation. When environment variables are inlined (via a browserify transform or webpack plugin), then tools like webpack or uglify are able to determine that only the mocks will be imported - and can avoid including the entire implementations in the final bundle that is sent to the browser. This allows for a much smaller ultimate file size, and faster in-browser performance, without sacrificing the benefits of PropTypes themselves.




proptypes - :guardsman: React's PropTypes, as a standalone module.

  •    Javascript

React's PropTypes, packaged up as a standalone module.

api-check - VanillaJS version of ReactJS propTypes

  •    Javascript

It's like ReactJS propTypes without React. Actually, it's very heavily inspired by this concept. It's purpose is for normal JavaScript functions rather than just React Components.Note, there are a bunch of tests. Those should be instructive as well.

react-validator-prop-types - proptype wrappers around validator.js functions

  •    Javascript

React PropType wrappers around validator.js functions. Great validation libraries already exist, but the default set of React PropTypes is pretty sparse by comparison. This just wraps the popular validator.js library into prop types that support the isRequired convention.


react-strict-prop-types - A higher order component that raises an error if component is used with an unknown property

  •    Javascript

A higher order component that raises an error if a component is used with an unknown property. A property is considered unknown when it is not defined in the component propTypes declaration. For an alternative that runs at the compilation time, read about the ESLint prop-types rule.

redux-orm-proptypes - React PropTypes validation and defaultProps mixin for Redux-ORM Models

  •    Javascript

Provides type checking using React PropTypes and declaring default properties with defaultProps in Redux-ORM. Import.

vue-types - Vue Prop Types definitions

  •    Javascript

vue-types is a collection of configurable prop type definitions for Vue.js components, inspired by React's prop-types. While basic prop type definition in Vue is simple and convenient, detailed prop validation can become verbose on complex components. This is the case for vue-types.

prop-types-ts - Alternative syntax for prop types providing both static and runtime type safety, powered by io-ts

  •    TypeScript

The @props decorator sets propTypes on the target component to use a custom validator function built around io-ts types.

babel-plugin-react-docgen - Babel plugin to add react-docgen info into your code.

  •    Javascript

react-docgen allows you to write propType descriptions, class descriptions and access propType metadata programatically. This babel plugin allow you to access those information right inside your React class.

prop-types-extra - Additional PropTypes for React

  •    Javascript

Additional PropTypes for React. This validator checks that all of the provided validators pass.

react-prop-types - Additional PropTypes for React

  •    Javascript

Additional PropTypes for React. This validator checks that all of the provided validators pass.