Tweetovi
- Tweetovi, trenutna stranica.
- Tweetovi i odgovori
- Medijski sadržaj
Blokirali ste korisnika/cu @phry
Jeste li sigurni da želite vidjeti te tweetove? Time nećete deblokirati korisnika/cu @phry
-
Prikvačeni tweet
How should you handle global vs local state in a modern React app? Should you choose Context, Redux, MobX or Apollo? In my talk on the
@JavaScriptCon London I tried to shed some light on these questions - and now the video is online for you to watch:https://www.youtube.com/watch?v=dPY8y4CB3mI …Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
Lenz Weber proslijedio/la je Tweet
Common mistake I see in React apps: Putting state in the wrong spot. Simple strategy: 1. Put state in the component that needs it. 2. Do child components need the data too? Pass it down. 3. Do parents need it? Lift state up. Strive to keep state as low as possible.
#reactjsHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
Lenz Weber proslijedio/la je Tweet
Are you working with 3D printers and want to create a better world? Apply on our position on "3D printing of spare-parts for repair". We are looking for a 3-year Postdoc applied researcher on 3D printing of spare parts used to repair consumer products.https://www.academictransfer.com/nl/288787/post-doc-3d-printing-for-repair-3dp4r/ …
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
Lenz Weber proslijedio/la je Tweet
Bock auf GraphQL, React & Postgres?
@phry und ich erzählen am 06.02. in#Berlin was über unser Audit-Plugin in diesem Stack und am Tag drauf gibt's nen Workshop zum selber basteln!@mayflowergmbhhttps://www.meetup.com/de-DE/Mayflower-Meetup-Berlin/events/267930521/ …Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
I actually forgot about this one in yesterday's
#TypeScriptTuesday. Thanks@atcb :)https://twitter.com/atcb/status/1222344340535574528 …Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
Next week we'll start on types. I hope you've learned something today, and I'll see you next
#TypeScriptTuesday.
You can find all examples in a TypeScript playground here: https://www.typescriptlang.org/play/#code/LAKAlgdgLgpgTgMwIYGMYAICCKpgPYToDeo66UAngA4wBc6AzlHJAOYDcoAvqLyCSDKRYiVBgDqYKAAsAonDh44mKMzAAjAK6xipMuniK49eUc6D0PEHoD0NgwA9YEACZt0AW00AbXFW8YwvDIaAzoYGFUeAwMGgF6QaJo6ADKahCsAApIFN54SC7YuASSMqZKjs4uYUX4EAA06KVyCkoqalo6AvroVDl5BfRMLBnmZFa2AFSTeuiT6AAq0hHoKEiE6hhwMAx43gBuMC7keMTk1HSM6Ry9-fkuQ9eWjQDuyyjSs-MoeD7Hm44qNsYkd0EgwutwtBgmJGrtwlBVpCATAnDBXEcAHRfGwJaFJDBpEZZO4FWoESro6roADyHikAB4iWxsrl7uSIM1ynBGgAiQxKXkAPl0FjIHhgUCQ9Agmg8mzgY0sfDINmmX0Wq1+3n+GCQ5xo5GkSERPz+6AgeERKIcQJ2DFB6goYMIiRCMGxYvmKVOLwwrElLoMrWMsxFmFd+PdSMIBG8ztRVSDeHUACsYDgDRgKokHTg6ug8AhC2mM1Aw1mwi8pNIriawGtvPH0ABrS0vQgS+XwBiYgAUACYAMwARgHAEocXiRNGAJIQfZIbxgFyyNGuZrMjKsgYuBkLEWJqlhOmMhZ8gVwYWinoSqUyuUKpVWCb8acw5IAKRSNIAcjTS0zbp9AAbRbGAKEeYkAF0H27OB0AAHyuYlnxVKEZzEVI8DvZYMlkbwHRvUDwMglC2Fg8iMiQi1H3gJUyDAiC4IVSjZXgtDrAsN0sPnRdlxcedMOSYDGNIqCKIk0ZZnQOx0G5egIyhFxUUYMBWAgE1NG2W44CQO94CzGNLWtPV0E0CAC0oGhPR6OSAGECFiFSEM0WJqP1DwkCoGhjhTdNM2swIICYGACkxKAGD7EchyHAB2ScxXQJiyN5JBeRo3l1F5SjhjYBjZPsBT0F-OV4AbZTVKC9AAHJ2IVGrwjCEywRidTNPUeIkrkqBTjy6jIBUhwjJq-rWBqiKooHAAWGLEp6FKWPgNi6MVPQXz4YCeOSTAWBkO8GwYGkaD04pCFEwsTpNJR6F5ABqDLkN5ABaR70F5Gw3t5SZeQKgIECgY74HWB5aPgmjdprA6UCOq6zoKlhWGkQGrtcJaEOQyH9slQ6gdOupONfMAPCiOBESIVZthNGAOUsdAEEUDx3oAAW2FxNAcVMGBsXq9hbKRftAYC1XQDV0E2BAlAwAAlBYAGl0BHTEB0xAAGRoZBWF5wVoL4xeaBYLkyRQTsoBlmgAWRND4GTF9A+wZTIFkpVxmtWoU+z6NlBnQJ3x3QABeEVmh3e5HfPLB8wIBleVgJhhSFcdGjt2OdigXlGnq+BM5gQ4eQtXP4CFPk4-TsWhT1r0hERFZ211r0xY5eyqd6uAQ9JPcs-z1P44rixJlxCwfhCxFS9pgPKbC2AOQZLuS7T4U+x79Px3MLggA …Prikaži ovu nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
The lazy nature of interfaces has an additional benefit: Types, as they are eager, often display all their definition in error messages, exposing implementation details. Interfaces just show their name. We used this in
#redux-toolkit got get more legible autocompletion & errors.pic.twitter.com/FvnMAAAw2t
Prikaži ovu nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
Interfaces are evaluated lazily. That allows for recursion that might not be possible with types. Since TS3.7, types have become "lazier" and they allow for most recursion, too. Just remember, if something doesn't work as a type, an interface might still work fine.pic.twitter.com/cl8Siz7Ike
Prikaži ovu nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
Another feature or Interfaces are index signatures. Interfaces can be indexed only by string or number, not by union types. You need Mapped Types for that. If you index by string and number, the value indexed by number has to be a subset of the value indexed by string.pic.twitter.com/Mq7QKpvcZa
Prikaži ovu nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
An interface can also extend another interface. Not only that, but also some (but not all) types. The rule of thumb here is: if the type is well-known and could be written as an interface, it can be extended.pic.twitter.com/HyO0GgGOEW
Prikaži ovu nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
This
#TypeScriptTuesday, we're going to take a look at#TypeScript's interfaces. Interfaces are different from types and both have their strengths in different situations. Let's take a look. This is just some interface definition - again an example from the#redux types:
pic.twitter.com/HjW09PHIlJ
Prikaži ovu nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
Lenz Weber proslijedio/la je Tweet
Ich habe auf Heise Developer ein paar Gedanken zur
#React#Hooks API aufgeschrieben. Bin auf Eure Meinungen gespannt, also tobt euch fleißig hier oder im Heise Forum aus
Viel Spaß beim Lesen und schönes Wochenende!
https://twitter.com/heisedc/status/1220589824282890240 …Prikaži ovu nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
Lenz Weber proslijedio/la je Tweet
#TypeScript tip for today: `as const` assertion marks a literal expression as immutable. Nested!
pic.twitter.com/V6ypBadoqM
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
Prikaži ovu nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
And then there's this one weird trick: in
#TypeScript, a generic argument can reference _itself_ in it's extends clause. For example, this allows to restrict generic arguments to very explicit mapped types with an association between keys and values.pic.twitter.com/tOQJlhJDjB
Prikaži ovu nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
Not only can you use any interface in `extends`, you can also reference other generic parameters. This can - among other things - be used to "pick" types from another generic type. Before conditional types, this was the common way to do things like this:pic.twitter.com/xTxmDjaCNM
Prikaži ovu nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
This can be solved by using the `extends` keyword, which allows us to restrict a Type Argument. So here, we state that out `T` argument always has to be a valid `string`. You could always override that restriction by using `any`. But `extends` can do more than that...pic.twitter.com/NoqMSs4FbC
Prikaži ovu nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.