3 ms·
especially weird since you would use `date-fns` (vs. something like moment) specifically because it allows you to include only the functions that you require (v
by johnghanks 6y ago
especially weird since you would use `date-fns` (vs. something like moment) specifically because it allows you to include only the functions that you require (via tree-splitting).
- danabramov 6y agoThis is a bit of a convoluted example, but it also illustrates the point — I personally didn't know that! And I'm sure many people don't, either. The nice thing about Server Components is that for many use cases, you don't need to know the "right way" to import a library because it's simply not shipped to the client. And even the "right way" doesn't give you 0 bytes.