export default class Collage extends React.Component {
    constructor() {
        this.state = {
            images: [
                <this.Image src="" />,

    Image = ({ src }) => (
        <img className="collage__img" alt="" src={src} onTransitionEnd={evt =>} />

    render() {
        return (
            <div className="collage">

All I want is to generate a list of images in .collage block before everything is rendered. As you see, I tried to create images in the constructor. But this way I get an error:
Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined.

But if I declare Image in the constuctor (without using this) everything works fine. Such a strange behavior.