Dive into this in-depth guide on composing JavaScript functions with multiple parameters! Explore techniques like wrapping, partial application, and currying to simplify your code and create more reusable functions. #js#bestpratice https://t.co/Z6mJBYA5aD
Need to generate PDFs from HTML? Check out these JS methods: html2pdf.js, React PDF, & Puppeteer. React PDF is great for embedded text & easy setup. #pdf#react https://t.co/2oZtejT7cs
Good refactoring improves code quality & maintainability. Avoid common pitfalls like over-styling & unnecessary abstractions. Tips: be incremental, understand the code deeply, & use testing tools. #refactoring https://t.co/xmmLDza7eu
TypeScript Enums can be inflexible & incompatible with modern JS features. Consider using objects or union types for clearer, more maintainable code. #typescript#enums#react https://t.co/45Sa83HXgc
Learn how to efficiently synchronize application state with external data sources like LocalStorage using #React's useSyncExternalStore hook, with a practical example and detailed explanation. https://t.co/BPM0yvwgya
Time to talk about one of the strangest TypeScript tricks around.
It's the loose autocomplete trick. And it's ACTUALLY USEFUL for app development.
Let me explain 🧵
@Sheshounet Ah ah moi c'est Chronopost, ils m'ont pas livré pendant une semaine j'ai mis en information de livraison "merci de me livrer cette fois ci" et ils sont venus 😅