how to get both props from redux and component code example Example: redux import connect import { connect } from 'react-redux'