Skip to content

0.3.0

Compare
Choose a tag to compare
@shuding shuding released this 05 Jan 13:36
· 71 commits to main since this release
366a7d0

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

New Contributors

Full Changelog: 0.2.4...0.3.0