I want to know, is import {} from deconstruction

CSDN Q & A 2022-01-15 02:50:44

I want to know ,import { .} from . Is it deconstruction , That's what I've always understood

Refer to the answer 1:

No, it isn't , This is a es6 On demand introduction of writing , Although it looks a bit like the structure , In fact, it's different , For example, export by default export default myclass={ a:function(){}

If it's a structure , We can import {a} Import , But the result is not

If help , Excuse me [ Adopt this answer ] thank you ^O^

Refer to the answer 2:

Similar articles