Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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).

like image 865
Arnaud Moret Avatar asked Jun 28 '16 14:06

Arnaud Moret


1 Answers

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

like image 60
Yozi Avatar answered Sep 22 '22 05:09

Yozi