What does the colon mean in Javascript after function?

Usually it’s flowtype annotation and in this case means that setup() returns a React.Component. Or it could be TypeScript as well, can’t make sophisticated guess in this particular case.

Leave a Comment