-
https://codesandbox.io/p/sandbox/valtio-to-do-list-forked-9l3mf6 I use However, in practice, I found that even if I just read the HTMLElement's attributes it would report an error. Tried using So my question is: can't I store the HTMLElement in the state, even if I just read some of its properties and don't make any changes?
II'd love to automate and manage this process with Valito. If I can't use Valito I'll have to re-render manually: const state = { a: null, b: 2 }
state.a = document.createElement('div')
// ... some other change ...
// manually render
root.render(<App ele={state.a} count={state.b} />) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
How about this? state.a = ref(document.createElement('div')) |
Beta Was this translation helpful? Give feedback.
How about this?