Answer the question
In order to leave comments, you need to log in
How to remove duplicate container in react+redux?
I am writing a small educational project: github
Achieved the following:
There is a list of active tasks. When you click on an active task, it moves to the list below - completed tasks.
Those. if we create a task and execute it, it moves from the list of active to completed.
When you click on a task in the completed list, it returns to the active ones.
At the moment everything works, only this code is worrying me: github
Here I create two absolutely identical containers, and the only difference in them is filtering by active and completed tasks. How can you do it more elegantly and not so clumsily?
Yes, you can try to pass a parameter through props to this container, but this will not be a clumsy solution?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question