roblox-ts/roact

Roact.createElement(element) doesn't support Roact classes as argument

Vorlias opened this issue · 1 comments

class ComponentName extends Roact.Component {
    public render(): Roact.Element { 
        return <frame/>;
    }
}

const element = Roact.createElement(ComponentName);

It will show as an error, despite this being legal in Roact.

Fixed in f51c16d