Thor Chen
May 15, 2021

--

That is amazing!

The upside is that now major browsers support "gap" in flexbox, but the downside is that they just started to support it :D

It may take some time for the majority of users to adopt these new browser versions (e.g., Safari 14.1 released on late Apr 2021).

When "gap" become universally available, I think it will replace most common use cases of <Spacer /> (e.g., equal spacing between items with pre-known space values), leaving the component only needed for special cases (e.g., dynamic spacing)

--

--

Thor Chen
Thor Chen

Written by Thor Chen

Passionate JavaScript/TypeScript Developer with a Full-stack Background

No responses yet