score:0

the solution was to change mygreatplace file to the same as the overlay component, to look like this:

export default class mygreatplace extends component {
    static proptypes = {
        text: proptypes.string,
    };

    static defaultprops = {};

    shouldcomponentupdate = shouldpurecomponentupdate;

    render() {
        return <div>{this.prop.text}</div>;
    }
}

Related Query

More Query from same tag