Some libraries are split into modules, plugins, or companion libraries.There are several great options to consider using instead of Moment. If so, and the aforementioned issues are not a concern for you, then you certainly can continue to use it. If you are a long-time user of Moment, you may already understand its API and limitations well. Thus, it might make sense to continue using Moment throughout your project rather than including yet another date and time library. If you are using such a component and cannot find an alternative, then you are already including Moment in your project. Several other libraries, especially date pickers and graphing libraries, take Moment as a dependency. However, Day.js reports compatibility with IE8 and higher so you still may wish to consider that alternative. If you have a strong requirement to support older browsers, then you might want to stick with Moment for a bit longer. Other libraries have also had issues with Safari, especially on mobile devices. You can read more in Luxon's documentation. By contrast, Luxon only works on IE 10 and higher and requires a polyfill to do so. Moment works well on Internet Explorer 8 and higher. However there are some possible reasons you might want to keep using it. In most cases, you should not choose Moment for new projects.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |