0.3.0
Improvements
This new release has improved types for <Balancer>
's props (#14) and a critical bug fix when web font is used (#18) with a new API.
It's not breaking and recommended to upgrade.
If you have multiple <Balancer>
components used, it’s recommended (but optional) to also use <Provider>
to wrap the entire app. This will make them share the re-balance logic and reduce the HTML size:
import { Provider } from 'react-wrap-balancer'
// ...
function App() {
return (
<Provider>
<MyApp/>
</Provider>
)
}
To learn more about the bug and the fix, check out #20.
What's Changed
- Types and other improvements by @valentinpolitov in #14
- Demo: Remove align prop by @wobsoriano in #15
- Setup Turborepo by @shuding in #19
- fix: Layout shift before mounted should trigger relayouts by @shuding in #20
New Contributors
- @valentinpolitov made their first contribution in #14
- @wobsoriano made their first contribution in #15
Full Changelog: 0.2.4...0.3.0