DEV Community

Discussion on: Why I use date-fns

charlbarrera profile image

so your propose is to use date-fns mainly for the sugar syntax?.
Because a good question can be.. is it justifiable to add an extra library (more size packages) like this, because we have remarkable advantages over the native object date?.
if this package is huge as momentjs, it is preferible to create a layer with the native date object, and make it immutable with more sugar syntax (if we want).