I’ve just updated the notebook:
-
I’ve removed the dynamic
importcall. -
The internal API has mostly been rewritten.
-
The
renderfunction now has support forviewof:viewof foo = render(({ useSetter }) => { const [text, setText] = useState('') useSetter(text) return jsx` <input type="text" placeholder="..." value=${text} onChange=${event => setText(event.target.value)} /> ` }) foo // is the value of the text input