Sha256: 7533732a45664a7917d9f6118e3132fe2a8055bf7e0bd6a774251d9af81c92d8

Contents?: true

Size: 440 Bytes

Versions: 5

Compression:

Stored size: 440 Bytes

Contents

import React from 'react';

import PropTypes from 'prop-types';

export default class Root extends React.Component {

    static childContextTypes = {
        viewport: PropTypes.object,
    }

    getChildContext() {
        return (
            {viewport: this.props.viewport}
        );
    }

    render() {
        return (
            <div className="root">
                {this.props.children}
            </div>
        );
    }
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hippo-fw-0.9.5 client/hippo/react/Root.jsx
hippo-fw-0.9.4 client/hippo/react/Root.jsx
hippo-fw-0.9.3 client/hippo/react/Root.jsx
hippo-fw-0.9.2 client/hippo/react/Root.jsx
hippo-fw-0.9.1 client/hippo/react/Root.jsx