Since forward slashes are used to enclose patterns in the above example, you have to escape the forward slash ( / ) with a backslash ( \ ) if you want to use it as a part of the regex.
( / )
( \ )
mapDispatchToProps can either be a function or an object. Now assuming that you have some knowledge of Redux, you’ll understand the importance of using ‘dispatch’. If not, here is a basic definition …