Pretext is a Game Changer

I know I know, I'm a week late, but I finally got a change to play with Pretext a bit and get a grasp of the hype. It's not every day that a text layout library goes unfathomably viral, and this one definitely deserves the attention. Pretext is a JavaScript library from a Midjourney/React core engineer which allows you to measure text while side stepping the DOM and avoiding page reflows. On the surface level, this feels kind of boring, but when you dig a bit deeper, you'll find that this solves some decades old problems on the web. I've seen quite a few demos, but I've yet to see any actually tutorials breaking down how the library works. So, that's what we'll go over today! #javascript #typescript #webdevelopment ✨ Animated UI components for React, Tailwind CSS, Framer Motion & More https://www.hover.dev 📚 Video Links Code: https://gist.github.com/TomIsLoading/... Pretext: https://github.com/chenglou/pretext Cheng Lou: https://x.com/_chenglou 🔗 My Links TikTok:   / tomisloading   LinkedIn:   / thomas-hessburg   Instagram:   / tomisloading   GitHub: https://github.com/TomIsLoading X: https://x.com/TomIsLoading Website: https://www.hover.dev Timeline: 0:00 - Introduction 1:33 - The basics 3:48 - Making it useful 8:47 - Beyond prepare() and layout()