Cannot read property 'props' of undefined

I am trying to integrate redux into my react app and I am having issues while doing mapStateToProps.

GitHub:- ( branch - redux-installation )


const CharacterList = (/*props*/) => {
    //to iterate list of characters//
    const characterCard = => {
            <div className = "col-md-4 col-sm-12">
                    key = {}
                    character = {character}      

             <ul className="row character-list">

const mapStateToProps = state => ({
    characters: state.characterReducer    
export default connect(mapStateToProps)(CharacterList)

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make easier to read.

See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.

Note: Backticks are not single quotes.