Either wrap the root component in a , or explicitly pass “store” as a prop to "Connect(CharacterList)

前端 未结 2 1532
南方客
南方客 2021-02-19 12:56

I am trying to test my React \"supersquadapp\" and getting the following error.

Uncaught Error: Could not find \"store\" in either the context or props of \"Connect(Char

2条回答
  •  庸人自扰
    2021-02-19 13:49

    You must pass the store instance to Provider...

    ReactDOM.render(
        
            
         
        , document.getElementById('root')
    )
    

提交回复
热议问题