when using Redux, the store should be the only source of truth and not have redundancy. Suppose that part of the store represents people who have a name and age. A human class in traditional object-oriented programming might look something like this:
class Person {
constructor(first, last, birthday) {
this.first = first;
this.last = last;
this.birthday = birthday;
get_fullname() {
get_age() {
}
However, methods are not allowed on objects in the Redux repository. So where should these "methods" be implemented?
source
share