Arnaud Moret
Arnaud Moret

Reputation: 753

Flow error with react render method

I ran into the error below while trying to add some flow type checking to one of my test apps.

I don't really understand what it means nor how to fix it.

render(): ?React.Element {

error:

Element: 
Application of polymorphic type needs <list of 1 argument>. (Can use `*` for inferrable ones)

Let me know if you need more code (maybe class definition etc).

Upvotes: 7

Views: 2809

Answers (1)

Yozi
Yozi

Reputation: 12727

It seems now we should to write Element<any> insted just Element

Upvotes: 13

Related Questions