Closed plusk closed 4 years ago
We could change this rule, but it is nice to have a return type on most functions, although components are usually pretty straight forward.
Another solution is to set JSX.Element
as return-type
Setting a return type is the correct answer, I just didn't have any luck with using Element
earlier.