60-90% smaller bundle*
Major version?
React 16.8 is now required, nothing else changed, except scroll lock become a bit smarter
Features
Yes
- blocking horizontal scroll
- parental scroll - inert properly
So why?
👉60% Bundle Size decrease*, as a minimum, and up to 90% with tree shaking.
if you want
🎣everything was rewritten in hooks. That simplifies the logic, make code more compact, but now the minimal React version is 16.8+
🚗a sidecar pattern has been used to split library code into the UI part(2kb), and Effect part(4kb) part, which would be executed only after Lock activation.