According to the doc, you can just use a normal React element instead of a function inside <Provider />
.
As a result, simply change your code to
<Provider store={store}>
<App />
</Provider>
I think this has changed since react@0.14.
According to the doc, you can just use a normal React element instead of a function inside <Provider />
.
As a result, simply change your code to
<Provider store={store}>
<App />
</Provider>
I think this has changed since react@0.14.