How spread operator is used in the following code?

I am looking at the following code :

import React, { useState } from 'react';

function Bulbs() {
  ... = useState(false);  
return <div className="bulb-off" />;

Can you help me understand how do I interpret ... that is used before the assignment operator in the above code?

I am referring to the following documentation:


I don’t think that the three dots are valid code, and are supposed to convey that some kind of assignment variable should go there.

Looking further at the code examples, they go from:

... = useState(...);


... = useState(false);


const stateArray = useState(false);

So we have confirmation that the ... was a just a non-syntax placeholder.

Ok. Thanks, Paul. I will ignore the non-syntax placeholder part then.