Rendering text
Few weeks ago I cam across this library on reddit (or somewhere on the web). It gained a lot of traction because the creator is/was one of the core maintainers of React.. I opened the examples and looked at some of the showcases of what people put out there and was like... oh cool, neat project! it prolly gained traction just because but practical uses are harder to find. There are a lot of cool projects out there that never gain traction because the creators are not Linus Torvalds or whatever... anywho.
Fast forward to today, I'm working on an app and i have this weird problem with rendering large paragraphs on smaller screens without doing the classical trick of truncating and "show more" etc.. and having to test layout shifts.. and I remember this library.. so I bun add ...and gave it a ran for its money.
I realized I was wrong... this is actually very useful, it ended up saving me tons of time and the rendering looked great because the box model knew how big it should be!
I still can't show the usage on the app since its not released but as usual here is link to experiment from my fav movie.