baobab-prop-types

1.0.2 • Public • Published

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

/baobab-prop-types/

    Package Sidebar

    Install

    npm i baobab-prop-types

    Weekly Downloads

    3

    Version

    1.0.2

    License

    MIT

    Last publish

    Collaborators

    • ruscoder