Start your All-Access Pass to unlock this challenge
In Vue, when should we use created instead of mounted for our components?
created
mounted
created should be used when you need to perform an action as soon as the component has been instantiated but you don't need access to the DOM directly.
created should be used only when you need to perform synchronous operations when the component is instantiated.
created should be used only when you need to perform asynchronous operations when the component is instantiated.
created is an internal function and should not be used directly.