Question: what is ownprops in mapstatetoprops?
Answer: ownProps (optional) You may define the function with a second argument, ownProps , if your component needs the data from its own props to retrieve data from the store. This argument will contain all of the props given to the wrapper component that was generated by connect .