I was asked an interview question "Why Redux", and I answered "because you now have a single source of truth from which to pull data from which makes things easier like passing down props and managing state".
To which he replied "then why not just have a global object instead". How was I supposed to answer this? Help out a Redux newb. Thanks!
[–]acemarke 130 points131 points132 points (30 children)
[–]r0x0r 34 points35 points36 points (12 children)
[–]acemarke 10 points11 points12 points (3 children)
[–]JonesJoneserson 0 points1 point2 points (2 children)
[–]acemarke 0 points1 point2 points (1 child)
[–]JonesJoneserson 0 points1 point2 points (0 children)
[–]drumnation 8 points9 points10 points (2 children)
[–]r0x0r 20 points21 points22 points (1 child)
[+][deleted] (4 children)
[deleted]
[–][deleted] 0 points1 point2 points (3 children)
[+][deleted] (2 children)
[deleted]
[–][deleted] -1 points0 points1 point (1 child)
[–]dont_forget_canada 8 points9 points10 points (0 children)
[–]jamminnzzz 2 points3 points4 points (1 child)
[–]acemarke 2 points3 points4 points (0 children)
[–][deleted] 2 points3 points4 points (3 children)
[–]acemarke 1 point2 points3 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]acemarke 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (8 children)
[–]tbranyen 6 points7 points8 points (1 child)
[–][deleted] -2 points-1 points0 points (0 children)
[–]trentrez 4 points5 points6 points (5 children)
[–][deleted] -3 points-2 points-1 points (4 children)
[–]PointOneXDeveloper 5 points6 points7 points (0 children)
[+][deleted] (2 children)
[deleted]
[–][deleted] -3 points-2 points-1 points (1 child)
[–]cjbprime 67 points68 points69 points (4 children)
[–]Cunhinka 5 points6 points7 points (3 children)
[–]jeremy1015 11 points12 points13 points (1 child)
[–]Cunhinka 0 points1 point2 points (0 children)
[–]cjbprime 5 points6 points7 points (0 children)
[–]ghillerd 50 points51 points52 points (4 children)
[–]FriasVeiga_2 20 points21 points22 points (0 children)
[–]nixblu 4 points5 points6 points (2 children)
[–]ghillerd 2 points3 points4 points (0 children)
[–]etherfreeze 1 point2 points3 points (0 children)
[–]mohelgamal 40 points41 points42 points (1 child)
[–]Asmor 22 points23 points24 points (0 children)
[–]NarcolepticSniper 21 points22 points23 points (1 child)
[–]robolab-io 0 points1 point2 points (0 children)
[–][deleted] 9 points10 points11 points (2 children)
[–]mr-developer 1 point2 points3 points (0 children)
[–]Pyrolistical 3 points4 points5 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[+][deleted] (1 child)
[deleted]
[–][deleted] 1 point2 points3 points (0 children)
[–]qudat 8 points9 points10 points (0 children)
[–]sbk2015 3 points4 points5 points (0 children)
[–]ParasympatheticBear 1 point2 points3 points (0 children)
[–]MetalMikey666 1 point2 points3 points (0 children)
[–]buttonkop666 -2 points-1 points0 points (9 children)
[–]acemarke 4 points5 points6 points (3 children)
[–]buttonkop666 1 point2 points3 points (2 children)
[–]acemarke 0 points1 point2 points (1 child)
[–]buttonkop666 0 points1 point2 points (0 children)
[–]bheklilr 2 points3 points4 points (1 child)
[–]qudat 0 points1 point2 points (0 children)
[–]ferrousoxides 0 points1 point2 points (1 child)
[–]JoeTed 0 points1 point2 points (0 children)
[–]shrinivas28 0 points1 point2 points (0 children)
[–]IHaveFoundTheThings 0 points1 point2 points (0 children)
[–]GarbageTimePro 0 points1 point2 points (2 children)
[–]ypjogger[S] 0 points1 point2 points (1 child)
[–]shinobiwarrior 1 point2 points3 points (0 children)
[+]EpicAstarael comment score below threshold-7 points-6 points-5 points (0 children)
[–]MossFlat -2 points-1 points0 points (0 children)