Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #35968
| From | CantReact <CantReact@please.nospam> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: cost {} = ? (React Native) |
| Date | 2019-01-17 22:37 -0500 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <q1rhmf$plv$1@gioia.aioe.org> (permalink) |
| References | <q1lmg6$10cn$1@gioia.aioe.org> <slrnq3u5hh.1f4.jon+usenet@sable.unequivocal.eu> |
On 1/16/2019 6:32 AM, Jon Ribbens wrote:
>
> Yes it's an import. 'require' returns an object containing the
> exported properties, and 'const { } =' "destructures" that object
> into variables in the current script. It's a lot less typing and
> more explicit to declare what properties you want to import and then
> use then locally like this:
John. You rock!
Back to comp.lang.javascript | Previous | Next — Previous in thread | Find similar | Unroll thread
cost {} = ? (React Native) CantReact <CantReact@please.nospam> - 2019-01-15 17:23 -0500
Re: cost {} = ? (React Native) CantReact <CantReact@please.nospam> - 2019-01-15 18:34 -0500
Re: cost {} = ? (React Native) Jon Ribbens <jon+usenet@unequivocal.eu> - 2019-01-16 11:32 +0000
Re: cost {} = ? (React Native) Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2019-01-16 22:03 +0100
Re: cost {} = ? (React Native) "Mark-" <nospam@mapson.xyz> - 2019-01-17 02:19 +0000
Re: cost {} = ? (React Native) CantReact <CantReact@please.nospam> - 2019-01-17 22:41 -0500
Re: cost {} = ? (React Native) CantReact <CantReact@please.nospam> - 2019-01-17 22:37 -0500
csiph-web