const engine = { href: "http://google.com", src: "google.png" }; <Y {...engine} /> // This is equivalent to doing: <Y href={engine.href} src={engine.src} />