syntax attribute same as name react

JavaScript
const x = 42;
const obj = { x, y: 1337 };
console.log(obj); // result { x: 42, y: 1337 }const x = 42;
const elm = <MyComponent {...{x}} />;
Source

Also in JavaScript: