for example the connect function from 'react-redux' library, looks something like this:
connect(state)(SomeComponent)
I understand that connect function accepts a single parameter but what does the second parenthesis mean? It seems like another parameter but why does it have to be in a separate parenthesis? what are the use cases? What exactly is the term for this?