4 ms·
I find it most useful for import statements: import {Button, Text} from 'react-native'; and in function declarations: function f({foo, bar})
by bryanlarsen 11y ago
I find it most useful for import statements:
import {Button, Text} from 'react-native';
and in function declarations:
function f({foo, bar})
- the_mitsuhiko 11y agoHowever: import statements do not actually destruct the default export, it does something entirely different. It looks up exported bindings.