In React Native(and so React), using Redux, we have the "limitation" that we should not store unserializable data, so every single class instance become a plain object. So, I think that doesn't make anymore sense to use Classes.
For example, if my application is a car fleet management app, probably I'lll have some entities like Car
, User
, etc
Now my question is, where would you manage and instance creation?
In the classic OOP I simply do new Car();
, but in this case, maybe, the "right way" should be to dispatch
the action creator the will do required operation, so dispatch(makeCar())
, is this right?
And what if I've some calculated property, like get age
?
I'm pretty new to this world...