DEV Community

Discussion on: Datetime Filter in Vue 3 using Moment.js

Collapse
 
allanneves profile image
Allan Neves • Edited

Thank you! If you don't mind the question, why do we need to assign the moment to itself upon creation in the life cycle? Obviously, we cannot use it as a component but I don't understand the black magic behind it.