dfilatov / vidom

Library to build UI based on virtual DOM
MIT License
415 stars 16 forks source link

How to deal with state? #98

Closed ghost closed 9 years ago

ghost commented 9 years ago

Hi. How are you planning to deal with the state for components?

dfilatov commented 9 years ago

For example, you can store the state of your component to this and call this.update() to rerender when the state is changed.