Home Reference Source Test Repository

Function

Static Public Summary
public

configurable(props: Object, propTypes: Object): Function

A component decorator to set props.

Static Public

public configurable(props: Object, propTypes: Object): Function source

import configurable from 'react-context-hoc/src/configurable.js'

A component decorator to set props. Also available as context.

Params:

NameTypeAttributeDescription
props Object
  • optional
  • default: {}

An object to set as props and context.

propTypes Object
  • optional
  • default: {}

A corresponding propTypes for the props object.

Return:

Function