all files / components/ ExampleComponent.react.js

100% Statements 44/44
100% Branches 33/33
100% Functions 10/10
100% Lines 5/5
4 statements, 14 branches Ignored     
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20                                
import React, {Component, PropTypes} from 'react';
 
export default class ExampleComponent extends Component {
    render() {
        const {label} = this.props;
 
        return (
            <div>ExampleComponent: {label}</div>
        );
    }
}
 
ExampleComponent.propTypes = {
    /**
     * A label that will be printed when this component is rendered.
     */
    label: PropTypes.string.isRequired
};