Re:React Wrap Balancer: Simple React Component That Makes Ti...
by jamesdwilson on Friday December 23, 2022 @11:19AM
(#34107448)
Forgive me but, is this a CSS's max-width implemented as a react component?
[ Parent
| on HN ]
Re:React Wrap Balancer: Simple React Component That Makes Ti...
by Zpalmtree on Friday December 23, 2022 @11:31AM
(#34107599)
no
Re:React Wrap Balancer: Simple React Component That Makes Ti...
by solardev on Friday December 23, 2022 @12:35PM
(#34108457)
No, look at the examples on the page. It avoids typographic orphans, that lonely last word on its own line after a reflow. This is standard in desktop publishing (Word, InDesign, etc.) but CSS has very weak support for it... http://thenewcode.com/946/CSS-last-line-Controlling-Widows-a...
Doesn't work in headings, and not supported by Firefox. So you need JS to hack it.