My demo does not run well.
https://github.com/jiexishede/react-redux-demo01
The error is :
I don't know how to solve this error. The error stops me more than two hours. I have to ask someone help me.
Your action below does not contain a type
property which is required
export function loadArticles() { return { types:[LOAD_ARTICLES, LOAD_ARTICLES_SUCCESS, LOAD_ARTICLES_ERROR], url:'./api/articles.json', }; }
You should modify the above code so that your action creator returns a type
export function loadArticles() { return { type: LOAD_ARTICLES, url:'./api/articles.json', }; }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With