I have the following code:
const cEditor = (onUpdate, props) => (<SelectEditor onUpdate=(onUpdate) {...props} />);
What is being done by {...props}? It seems as if it is passing down props to the component. What does this syntax mean?
I have the following code:
const cEditor = (onUpdate, props) => (<SelectEditor onUpdate=(onUpdate) {...props} />);
What is being done by {...props}? It seems as if it is passing down props to the component. What does this syntax mean?