Closed pratapvardhan closed 3 years ago
To re-render the element with multiple props, we could use the .render method?
.render
<template component="two-props" a="a" b="b"> <%= a %><%= b %> </template>
document.querySelector('two-props').render({a: 1, b: 2}) // vs document.querySelector('two-props').a = 1 document.querySelector('two-props').b = 2
or document a recommended way to update multiple props object in a single call?
The .render() method is the recommended way to render with multiple property updates. I'll document that.
.render()
Fixed via .update() in v0.0.5. See 29a9561
.update()
To re-render the element with multiple props, we could use the
.render
method?or document a recommended way to update multiple props object in a single call?