I have seen this <Tab label="Item One" {...a11yProps(1)} />
in Material UI where function is called with in the props with ... spread operator When i try speratly as
console.log(...a11yProps(3));
i get error ,anyone can tell what is happening here <Tab label="Item One" {...a11yProps(1)} />
how does spread operator used with function call ?