Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #35968
| Path | csiph.com!aioe.org!.POSTED!not-for-mail |
|---|---|
| From | CantReact <CantReact@please.nospam> |
| Newsgroups | comp.lang.javascript |
| Subject | Re: cost {} = ? (React Native) |
| Date | Thu, 17 Jan 2019 22:37:53 -0500 |
| Organization | Aioe.org NNTP Server |
| Lines | 9 |
| Message-ID | <q1rhmf$plv$1@gioia.aioe.org> (permalink) |
| References | <q1lmg6$10cn$1@gioia.aioe.org> <slrnq3u5hh.1f4.jon+usenet@sable.unequivocal.eu> |
| NNTP-Posting-Host | fRMLCsUze4+yIKCRLlH7rQ.user.gioia.aioe.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Complaints-To | abuse@aioe.org |
| User-Agent | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 |
| X-Notice | Filtered by postfilter v. 0.8.3 |
| Content-Language | en-US |
| Xref | csiph.com comp.lang.javascript:35968 |
Show key headers only | View raw
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