score:1

Accepted answer
// this becomes
export default function Xyz({x, y, z}) {
    // ...
}
// this
export default function Xyz(options) {
    var x = options.x;
    var y = options.y;
    var z = options.z;
    // All logic 
}

Related Query

More Query from same tag