You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<htmllang="en"><head><metacharset="UTF-8"><metaname="viewport" content="width=device-width, initial-scale=1.0"><metahttp-equiv="X-UA-Compatible" content="ie=edge"><title>Document</title></head><body><buttonid="update">update</button><divid="root"></div><scriptsrc="./roki/index.js"></script><script>const{
render,
h
}=Rokiletvnode=h('div',{},[h('span',{style: 'font-weight:bold;',onclick: function(){console.log('old span')}},['This is bold']),' and this is just normal text',h('a',{href: '/foo'},['I\'ll take you places!']),h('br'),'this will delete'])letnewVnode=h('div',{onclick: function(){console.log('new div')}},[h('span',{style: 'font-weight: normal; font-style: italic;'},['This is now italic type']),' and this is still just normal text',h('a',{href: '/bar'},['I\'ll take you places!!!']),h('br'),]);render(vnode,root)update.addEventListener('click',()=>{console.log(222)render(newVnode,root)})</script></body></html>
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: