What would be the result of using the spread operator (...) inside the ES6 import statement?
As I look through the specifications of import statement in MDN, I found the following statements.
import { export1 , export2 as alias2 , [...] } from "module-name";
import defaultExport, { export1 [ , [...] ] } from "module-name";
The question which I want to ask is what will be returned using the spread operator or how do we access the value from the module using the spread operator?
Aucun commentaire:
Enregistrer un commentaire