Optimize Your Front End Applications by Migrating From Moment to Dayjsby@pankajpatel

Optimize Your Front End Applications by Migrating From Moment to Dayjs

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

Too Long; Didn't Read

HolidayPirates GmbH used moment.js to transform and manipulate dates in its frontend app. The company decided to use a new version of the library called dayjs. The dayjs provides a plugin called 'Advanced Format' which extends the capabilities of dayjs to extend the capabilities. Dayjs is very much immutable & tree shakable and its instance does not mutate the behavior of other instances. We had to de the following every time we used the dayjs: Initialization with a format was not possible: Locale assignment has to be done every time you import a module.

Company Mentioned

Mention Thumbnail

Coin Mentioned

Mention Thumbnail
featured image - Optimize Your Front End Applications by Migrating From Moment to Dayjs
Pankaj HackerNoon profile picture

@pankajpatel

Pankaj

Receive Stories from @pankajpatel

react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa