prop-types - Runtime type checking for React props and similar objects

  •        5

Runtime type checking for React props and similar objects.



Related Projects

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

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.

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

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 }.

react-tabs - An accessible and easy tab component for ReactJS.

An accessible and easy tab component for ReactJS.For example usages of the UMD builds have a look at the examples/umd folder. The development UMD build also needs the package prop-types being loaded besides react.

react-native-facebook-login - React Native component wrapping the native Facebook SDK login button and manager

<FBLogin /> provides a React Native component wrapping the native Facebook SDK login button and manager. Note: Demo above includes debug text to confirm login (i.e. user name, email and access token). <FBLogin />, by default, will only display the native blue 'Log in with Facebook' button.

react-experiments - React components for implementing UI experiments

react-experiments is a set of React components for implementing UI experiments.react-experiments was built to work with PlanOut.js and most of its constructs are inspired by the structure of PlanOut.js. This library will work out of the box if you pass it an instantiated PlanOut Namespace or Experiment class, but if you want to use your own methods of assigning experiment parameters and logging exposure then you can extend the base experiment class and pass that as the experiment class prop.

react-split-pane - React split-pane component

Split-Pane component built with React, can be split vertically or horizontally. By dragging 'draggable' surface you can change size of the first pane. The first pane keeps then its size while the second pane is resized by browser window. By default it is the left pane for 'vertical' SplitPane and the top pane for 'horizontal' SplitPane. If you want to keep size of the second pane and let the first pane to shrink or grow by browser window dimensions, set SplitPane prop primary to second. In case of 'horizontal' SplitPane the height of bottom pane remains the same.

react-html-email - Create elegant HTML email templates using React.

Modern HTML emails are a tangle of archaic HTML and inline styles. This library encapsulates the cruft into simple React components and helps avoid common pitfalls. react-html-email provides a set of components for a standard 600px table layout (inspired by HTML Email Boilerplate). React's Supported Tags and Attributes are extended to include a few deprecated attributes useful for legacy clients. In addition, a style prop validator is included which uses Campaign Monitor's CSS Support Guide to check for potential compatibility issues across email clients.

react-progressive-image - React component for progressive image loading

If you use the UMD build you can find the library on window.ReactProgressiveImage.react-progressive-image exports a single React component, ProgressiveImage, which takes a src and placeholder prop, as well as an optional onError function.

react-native-login - react-native login via native facebook sdk, with a mp4 video background and a linear gradient

Blog post about integrating Facebook SDK with react-native here. Deprecation warning: This is still a useful example to learn how to write native modules and create a login screen, but you should be using react-native-fbsdk now for a more robust solution to Facebook login.

react-native-image-crop-picker - iOS/Android image picker with support for camera, configurable compression, multiple images and cropping

Android: The prop 'cropping' has been known to cause videos not to be display in the gallery on Android. Please do not set cropping to true when selecting videos.Module is creating tmp images which are going to be cleaned up automatically somewhere in the future. If you want to force cleanup, you can use clean to clean all tmp files, or cleanSingle(path) to clean single tmp file.

victory - A collection of composable React components for building interactive data visualizations

Projects using Victory should also depend on React and prop-types.The victory repo aggregates stable victory components that are developed in other repos. The victory repo is only updated with new releases, but the following repos are under very active development.

gulp-react - Precompile Facebook React JSX templates into JavaScript

Precompile Facebook React JSX templates into JavaScript

react-native-parsed-text - Parse text and make them into multiple React Native Text elements

This library allows you to parse a text and extract parts using a RegExp or predefined patterns. Currently there are 3 predefined types: url, phone and email.All the props are passed down to a new Text Component if there is a matching text. If those are functions they will receive as param the value of the text.

cyclops - Home of the cyclops integration modules : support for Scala, Clojure, RxJava (1+2), Reactor, FunctionalJava, Guava, Dexx & Vavr

Define ulta-generic code that can be used by types across Vavr, Reactor, cyclops-react, Guava, JDK, Functional Java, RxJava.cyclops & cyclops-react allow collection types from all major functional libraries to be used behind fast lazy & reactive collection apis.

react-php-v8js - PHP library that renders React components on the server

React-PHP-V8Js is an experimental library that uses the power of Facebook's React library to render UI components on the server-side with PHP as well as on the client.Copyright (c) 2014, Facebook, Inc. All rights reserved.

go-starter-kit - Golang isomorphic react/hot reloadable/redux/css-modules starter kit

This project contains a quick starter kit for Facebook React Single Page Apps with Golang server side render via goja javascript engine, implemented in pure Golang and also with a set of useful features for rapid development of efficient applications.Note that probably not works at windows.

frisbee - :dog2: Modern fetch-based alternative to axios/superagent/request

tldr; Stripe-inspired API wrapper for WHATWG's fetch() method for making simple HTTP requests (alternative to superagent, request, axios).If you're using node-fetch, you need node-fetch@v1.5.3 to use form-data with files properly (due to If you experience form file upload issues, please see

fbjs - A collection of utility libraries used by other Facebook JS projects.

To make it easier for Facebook to share and consume our own JavaScript. Primarily this will allow us to ship code without worrying too much about where it lives, keeping with the spirit of @providesModule but working in the broader JavaScript ecosystem.Note: If you are consuming the code here and you are not also a Facebook project, be prepared for a bad time. APIs may appear or disappear and we may not follow semver strictly, though we will do our best to. This library is being published with our use cases in mind and is not necessarily meant to be consumed by the broader public. In order for us to move fast and ship projects like React and Relay, we've made the decision to not support everybody. We probably won't take your feature requests unless they align with our needs. There will be overlap in functionality here and in other open source projects.