Spread Operator & JSX
Learn how to use the spread operator and JSX in Python.
We'll cover the following...
Spread operator
In JavaScript, we may see a parameter notation that looks like this:
var myObject = { foo: 'bar', bar: 123, baz: false };var newObject = { ...myObject, bar: 42};//newObject { foo: 'bar', bar: 42, baz: false }
The ... notation is the JavaScript spread operator, which performs a function similar to what a dictionary ...