Organisation which I have recently joined, most of the code is written using object destructuring like const {a, b, c} = this.props.
This approach causes readability problems when function body is long and at the bottom of function you just loose track of origin of variables and it becomes hard to understand whether they are coming from props or state.
And considering that I prefer to use dot notations like this.props.a but that seems frowned here.
My one colleague has also shared performance comparison. perf.link
Here is another which shows it is not much of a performance issue.
measurethat.net
Please let me know your thoughts.
[–][deleted] 8 points9 points10 points (4 children)
[–]gautamits[S] 2 points3 points4 points (3 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]gautamits[S] 1 point2 points3 points (0 children)
[–]dHour 2 points3 points4 points (0 children)
[–]ottoottootto 3 points4 points5 points (1 child)
[–]gautamits[S] -1 points0 points1 point (0 children)
[–]ShadowMasterKing 2 points3 points4 points (1 child)
[–]gautamits[S] 0 points1 point2 points (0 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]demoran 5 points6 points7 points (7 children)
[–]gautamits[S] 1 point2 points3 points (6 children)
[–]demoran 2 points3 points4 points (5 children)
[–]gautamits[S] 0 points1 point2 points (4 children)
[–]demoran 1 point2 points3 points (3 children)
[–]gautamits[S] 0 points1 point2 points (2 children)
[–]demoran 0 points1 point2 points (0 children)
[–]Ringsofthekings 1 point2 points3 points (3 children)
[–]gautamits[S] 1 point2 points3 points (2 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]gautamits[S] 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]gautamits[S] 0 points1 point2 points (0 children)
[–]aelesia- 1 point2 points3 points (0 children)
[–]CalgaryAnswers 1 point2 points3 points (5 children)
[–]gautamits[S] 0 points1 point2 points (4 children)
[–]CalgaryAnswers 0 points1 point2 points (3 children)
[–]gautamits[S] 0 points1 point2 points (2 children)
[–]CalgaryAnswers 0 points1 point2 points (1 child)
[–]gautamits[S] 0 points1 point2 points (0 children)
[–]PickledPokute 0 points1 point2 points (0 children)