React PropTypes for Baobab
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
.npmignore
LICENSE.txt
README.md
package.json

README.md

npm version

baobab-prop-types

React PropTypes for Baobab

Installation

npm install baobab --save

npm install baobab-prop-types --save

Usage

  import BaobabPropTypes from 'baobab-prop-types';
  
  ...
  
  propTypes: {
    field: BaobabPropTypes.cursor,
    reqField: BaobabPropTypes.cursor.isRequired,
    fieldTree: BaobabPropTypes.baobab,
    reqFieldTree: BaobabPropTypes.baobab.isRequired
  }
  ...