I am learning javascript, specifically react-js.
Here is a simplest example I am following to learn these technologies.
What I have learnt that usually we call a function like this
function_name (param1, param2) {
}
but I can't understand how multiple parenthesis after function name work. (atleast for a beginner like me).
I couldn't google anything as I don't know what do we call this kind of syntax in javascript.
import { Provider, connect } from 'react-redux';
class Counter extends Component {
const App = connect(mapStateToProps,mapDispatchToProps)(Counter)
} ^(this)?
In the above example, How do they work?