Rendering Differences
const [ value, setValue ] = useState("init"); // you can also use useProp
<host>
<my-component
value={value}
onchange={({target})=>setValue(target.value)}
></my-component>
</host>const update = useUpdate();
<host>
<my-component
value={value}
onchange={update}></my-component>
</host>Last updated
Was this helpful?
