hadron-react-bson
Hadron React BSON Components
Last updated 8 months ago by durran .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install hadron-react-bson 
SYNC missed versions from official npm registry.

hadron-react-bson

Hadron React Components for BSON values

Usage

Use the getComponent method to return the correct component for the provided BSON type.

const React = require('react');
const getComponent = require('hadron-react-bson');
const component = getComponent('String');

React.createElement(component, { type: 'String', value: 'testing' });

Require components directly. Note that if a BSON type does not have a specific component, it will be handled by the generic Value component which calls toString on the object.

const {
  BinaryValue,
  CodeValue,
  DateValue,
  Value,
  DoubleValue,
  Int32Value,
  KeyValue,
  RegexValue,
  DBRefValue
} = require('hadron-react-bson');

License

Apache 2.0

Current Tags

  • 1.13.1-0                                ...           beta (3 years ago)
  • 4.0.4                                ...           latest (8 months ago)

31 Versions

  • 4.0.4                                ...           8 months ago
  • 4.0.3                                ...           8 months ago
  • 4.0.2                                ...           8 months ago
  • 4.0.1                                ...           8 months ago
  • 4.0.0                                ...           8 months ago
  • 3.4.0                                ...           a year ago
  • 3.3.0                                ...           a year ago
  • 3.1.2                                ...           a year ago
  • 3.1.1                                ...           a year ago
  • 3.1.0                                ...           2 years ago
  • 3.0.6                                ...           2 years ago
  • 3.0.5                                ...           2 years ago
  • 3.0.1                                ...           2 years ago
  • 3.0.0                                ...           2 years ago
  • 2.1.0                                ...           2 years ago
  • 2.0.1                                ...           2 years ago
  • 2.0.0                                ...           2 years ago
  • 1.13.2                                ...           3 years ago
  • 1.13.1                                ...           3 years ago
  • 1.13.1-0                                ...           3 years ago
  • 1.12.0                                ...           3 years ago
  • 1.10.1                                ...           3 years ago
  • 1.9.0                                ...           3 years ago
  • 1.4.0                                ...           3 years ago
  • 1.3.0                                ...           3 years ago
  • 0.3.1                                ...           3 years ago
  • 1.2.0                                ...           3 years ago
  • 1.0.0                                ...           4 years ago
  • 0.3.0                                ...           4 years ago
  • 0.0.2                                ...           4 years ago
  • 0.0.1                                ...           4 years ago

Copyright 2014 - 2017 © taobao.org |