Kacper Kulainhypersphere·1 day agoAdvanced TypeScript: Mapped Types and moreUsing strongly typed language has a lot of benefits. But TypeScript is not a magical tool — the stronger types you provide, the better results you will get. …Typescript5 min read
bytefishinLevel Up Coding·1 day agoVue Creator Tells React Team: You Should Recommend Vite over Create-React-App for React DevelopersA war between React and Vue: Battle of Vite. — Recently the React team is updating the React documentation. Taking this opportunity, Evan You, the creator of Vuejs, made a suggestion to the React development team: CRA stands for create-react-app. Vite is a build tool that aims to provide a faster and leaner development experience for modern web projects…Programming3 min read
Zachary LeeinDev Genius·1 day agoNew Features in ECMAScript 2022 for Class ElementsWhat convenience does it bring? — This post is the second in a series of new features in ECMAScript 2022, focusing on class elements. The first one is here: ECMAScript 2022 Is Officially Released, What Should We Pay Attention To? Did it bring something interesting?blog.devgenius.io Public and private instance fields Instance fields allow properties to be added to a class definition using =. All properties are public by default, you can use # before the field to…Java Script3 min read
Alihan Keskin·9 hours agoFare AksiyonlarıMerhaba, bu yazıda fare aksiyonlarının (mouse events) anlık tetiklenmelerini ve tetiklenme sayılarını gösteren projemden bahsedeceğim. Giriş Fare aksiyonlarını, geliştirdiğimiz web sitelerini harekete geçirecek becerileri tetiklemek için kullanırız. Muhtemelen hemen herkes ‘onclick’ aksiyonunu sürekli olarak kullanıyordur. Yine de tıklama dışında tetikleyebileceğimiz başka aksiyonlar da var. Bu aksiyonların isimleri açıklayıcı olsa da bazen…Mouse Event2 min read
Josef CruzinJavaScript in Plain English·10 hours agoWhy Software Developers Prefer to Use an Old LaptopInstead of getting a new one. — The main reasons a programmer changes the laptop is that it has become too slow or the battery can no longer hold up. In the first case, the programmer lightens the system and adds RAM or SSD. In the second, just changing the battery or, at worst, being constantly connected…Programming3 min read
Kristofer Giltvedt SelbekkinBekk·9 hours ago<ForrigeUke uke=”25” år=”2022” edition=”react-norway”/>Dette var uken for vonde nyheter 😢, flotte folk 🫂 og kjærlighet for alle. Måtte kjærligheten alltid vinne 🏳️🌈. Også skjedde det no litt hyggeligere greier i Larvik, som jeg tenkte vi kunne fokusere på i denne ukens ForrigeUke! ⚛️ <ForrigeUke /> er en artikkelserie som oppsummerer hva som skjedde…React5 min read
Simon StevensinAppLearn Engineering·6 hours agoRxJS interop incompatibility: A tale as old as timeThe story of an interesting bug that will almost certainly only appear within our unique setup. Uncaught TypeError: You provided an invalid object where a stream was expected. You can provide an Observable, Promise, Array, or Iterable. Our story starts in a place very familiar to us, the Chrome DevTools…Rxjs3 min read
Evgeny Kirichuk·5 hours agoWhat Happens if You Don’t Resolve or Reject A Promise?A Popular Question in Job Interviews. — JavaScript developers often use promises to handle asynchronous operations. A Promise object can be in a pending, fulfilled, or rejected state, depending on whether it is resolved or rejected. But what happens if a Promise is not resolved or rejected? Let’s find out. To get to the bottom of this…Java Script4 min read
Zachary LeeinDev Genius·2 days agoECMAScript 2022 Is Officially Released, What Should We Pay Attention To?Did it bring something interesting? — The ECMA General Assembly approved the ECMAScript 2022 language specification on June 22, 2022, which means it is now officially a standard. We will be able to use these new features in JavaScript soon. The following will introduce them one by one: Introduced top-level await Prior to this, the await keyword could only…Java Script3 min read
Spencer CarliinReact Native School·23 hours agoBuild Themed Components in React NativeBuilding a multi-theme app doesn’t have to be complicated, so long as you take advantage of custom components. In this tutorial we’ll cover how to create your own versions of core React Native components that are automatically themed to use the right colors based on the user’s preferred color scheme. …React Native5 min read