You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
because "Using square brackets as in computed property name is confusing. In ES6 whatever’s inside brackets is a string name variable" and "[...] would have been more consistent [...]".
Easy enough to do already in ES6 already with a spread + implicit prop names. I don't think we need more syntax muddying the waters when this is already solved.
Common problem...
I repeat "propVariable". I find myself doing this a lot... like, several times for one JSX object (usually a React component) is not uncommon.
Proposed solution...
which would result to the same as the "common problem" example.
EDIT: Dan Abramov suggested this syntax instead:
because "Using square brackets as in computed property name is confusing. In ES6 whatever’s inside brackets is a string name variable" and "[...] would have been more consistent [...]".
Inspired by:
The text was updated successfully, but these errors were encountered: