shuding / react-wrap-balancer

Simple React Component That Makes Titles More Readable
https://react-wrap-balancer.vercel.app
MIT License
3.98k stars 66 forks source link

Stop spreading `as` prop onto root element #87

Closed hasparus closed 6 months ago

hasparus commented 9 months ago

Previously, the as prop was spread onto the component it defines, so we get:

<p as="p">
<span as="span">
image

I destructured it to keep the resulting DOM clean.

vercel[bot] commented 9 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-wrap-balancer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 13, 2024 9:46pm