If your variables are contained in an object, such as this.props
, you spread the object:
<Elem {...this.props} />
Otherwise, you spread a new object containing the variables you need:
{...{ x, y, z }}
Although it creates a new object for no good reason.