Object destructuring
The main reason to avoid object destructuring in Ring is to improve the readability and avoid losing the context. Keeping the root of the source (props
, state
, localStorage
, url
) tell us where the data is coming from.
There is a good article about the topic: Breaking the Habit: The Overuse of Object Destructuring in React