Something I learned today.
#glob#ts#tsc#eslint#npm#react#state#performance#hooks#effect#js#ref#event#prototype#jest#testing#pattern#css
How to prevent global scope pollution
Oct 7, 2024
How does React know which state to return
Oct 7, 2024
Resetting state with a key
Oct 7, 2024
React rendering
Oct 7, 2024
React.ReactNode vs React.ReactElement
Oct 7, 2024
Why do multiple JSX tags need to be wrapped
Oct 7, 2024
React.memo vs useMemo vs cache
Oct 7, 2024
Is it okay to suppress the dependency linter
Oct 7, 2024
Index as a key is an anti-pattern
Oct 7, 2024
How to tell if a calculation is expensive
Oct 7, 2024
React event object
Oct 7, 2024
ElementRef
Oct 7, 2024
Controlled and uncontrolled components
Oct 7, 2024
Capture phase events
Oct 7, 2024
Adjusting some state when a prop changes
Oct 7, 2024
typeof vs instanceof
Oct 7, 2024
String.prototype.localeCompare()
Oct 7, 2024
Lexical scope
Oct 7, 2024
isNaN() vs Number.isNaN()
Oct 7, 2024
IIFE vs Closure
Oct 7, 2024
globalThis
Oct 7, 2024
for await...of
Oct 7, 2024
for statement with multiple loop counters
Oct 7, 2024
Avoid creating holes in arrays
Oct 7, 2024
Assignment vs Shallow copy vs Deep copy
Oct 7, 2024
Strategy pattern
Oct 7, 2024
Observer pattern
Oct 7, 2024
Decorator pattern
Oct 7, 2024
border-radius not working
Jul 3, 2024