Answer the question
In order to leave comments, you need to log in
Why doesn't dispatch work?
Hello. I'm learning react.js using a simple example in conjunction with redux
Link to the sandbox
When I click on the All or Part filter in the console, an error occurs
Uncaught TypeError: (0 , filter.default) is not a function
Answer the question
In order to leave comments, you need to log in
There is no default export in 'actions/filter.js' file.
You can fix it like this:import { setFilter } from "../actions/filter";
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question