import React from 'react';
var Component = React.Component;

export function foo () {

}

export function baz () {

}

export class MyComponent extends React.Component {

}

export class MySecondComponent extends Component {
    render () {
        return <div className="whatever"></div>;
    }
}
import React from 'react';
var Component = React.Component;

export function foo () {

}

export function baz () {

}

export class MyComponent extends React.Component {

}

export class MySecondComponent extends Component {
    constructor(props) {
        super(props);
        this.state = {foo: 1};
    }
    componentDidMount() {

    }
    render () {
        return <div className="whatever"></div>;
    }
}
add methods to class in mock