I have been following this tutorial on setting up React with Redux, and I noticed some syntax that I am not familiar with. What are the curly braces inside the function parameter definition doing?
Example:
function Stream({ tracks = [], onAuth }) { #what is going on here?
return (
<div>
... #component stuff here
</div>
);
}
Is this React specific? Or does this have something to do with Babel or some other library? I am new to this tech, so not sure what is going on.