Spreading the elements from one array and copying them into is one of those handy shorthands for moving data around in JavaScript.
I started looking into it after seeing <ComponentName {...props} />
in lots of React projects, and couldn't figure out what on earth was going on with the props syntax.
Mystery solved...
Take a look at
Being humans, we rarely learn things linearly. No one begins their JavaScript journey by reading the TC39 language specification line-by-line like a pedantic masochist. Instead we all cobble…
A new version of JavaScript has landed! Every year JavaScript gets a handful of new features and functions for everyone to play with. The TC39 committee have released the 2019 additions to…
Comparing values is one of those essential developer skills that helps you write conditionals , if / then statements, filters , and plenty more. Here's the apples and oranges guide to using them in…
If you've had the pleasure of trying to stumble your way through learning React, you'll have been through the adjustment phase with JSX. Putting HTML and JS side-by-side feels like it's violating the…