Update todoapp mount issue (#817)

APP gets error while running "ReferenceError: mount is not defined"
because of mount not defined with "Component"
This commit is contained in:
Vishnu Vanneri
2021-01-06 13:13:33 +05:30
committed by GitHub
parent 144b323d2b
commit 3a10468f7b
+2 -2
View File
@@ -545,7 +545,7 @@ application), since it involves extracting all task related code out of the
components. Here is the new content of the `app.js` file: components. Here is the new content of the `app.js` file:
```js ```js
const { Component, Store } = owl; const { Component, Store, mount } = owl;
const { xml } = owl.tags; const { xml } = owl.tags;
const { whenReady } = owl.utils; const { whenReady } = owl.utils;
const { useRef, useDispatch, useStore } = owl.hooks; const { useRef, useDispatch, useStore } = owl.hooks;
@@ -808,7 +808,7 @@ For reference, here is the final code:
```js ```js
(function () { (function () {
const { Component, Store } = owl; const { Component, Store, mount } = owl;
const { xml } = owl.tags; const { xml } = owl.tags;
const { whenReady } = owl.utils; const { whenReady } = owl.utils;
const { useRef, useDispatch, useState, useStore } = owl.hooks; const { useRef, useDispatch, useState, useStore } = owl.hooks;