Аневризма retweeted
🚨 New Tutorial 🚨 Fullstack React + GraphQL + TypeScript + More I walk you through creating a backend and frontend from scratch then how to deploy the entire thing 14 HOURS of pure content, all available for free youtube.com/watch?v=I6ypD7qv…
99
432
2,381
Do not use the ‘width’ property on the flex items, use flex-basis #css #flexbox
Мотивация, верни ко мне :( #javascript
Аневризма retweeted
#jstip Sort an object literal in ascending order with 1 line of code: Object.fromEntries(Object.entries(obj).sort((a, b) => a[1] - b[1])); Swap a[1] and b[1] to get descending order.
2
13
118
I don’t know but #youtube is an app for watching #advertising or videos?
type First<T> = T extends [infer U, ...unknown[]] ? U : never; #typescript охуенно
Аневризма retweeted
Official recommendation from @TestingLib is now to *not* mock window.fetch directly and instead to polyfill it with npmjs.com/package/whatwg-fet… (if you're in Node) and use @kettanaito's npm.im/msw to actually handle those requests. Will appear on the docs eventually.
10
37
229
trying to use #react hooks in a class component is like installing windows on a macbook #javascript
1
2
3
#youtube adds are worst than politicians
#youtube adds are worst than having a landlord addicted to crack
Didn’t thought until but with #javascript I can’t remove those annoying adds logos or clickable ones when watching a movie )))
1
Аневризма retweeted
Really considering switching from import React from 'react' to import * as React from 'react' Because: 1. TypeScript requires import * anyway 2. This: nitter.catsarch.com/sebmarkbage/status/125… *sigh*
16
31
196
Чуваку, использующему #react hooks внутри классовых компонентов, нужна медицинская помощь.
A #thunk is a very complicated way of saying a very simple thing thunk (noun): a function returned from another function #javascript #react #redux
1