Implementing component proxy object
implementation of $el
-
get the root element
-
mount this element onto instance
-
set get function of proxy
setupState
-
Create a proxy object to return the value of
setupState
. -
Mount this proxy object onto
render
function.
Then, we can use this.key
to get value of setupState
in render
function.