Sha256: 52ec822886ea29ad758b13bda5b2b3a050f51eeb5b3ee62cb20d84db36b8ec4e

Contents?: true

Size: 387 Bytes

Versions: 2

Compression:

Stored size: 387 Bytes

Contents

import React from 'react';

export default function(Component) {
  return class extends React.Component {
    static childContextTypes = {
      resolverSeed: React.PropTypes.object
    }

    getChildContext() {
      return {
        resolverSeed: this.props.resolverSeed || {}
      };
    }

    render() {
      return (
        <Component {...this.props} />
      );
    }
  };
};

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pageflow-react-0.1.1 js/src/create_resolver_root.jsx
pageflow-react-0.1.0 js/src/create_resolver_root.jsx