|
|
|
|
|
by henriquelimao
3530 days ago
|
|
It is not common, easy, efficient or idiomatic, but you can:
Imagine that in each event handler, instead of doing something, you just update some state somewhere, and after that call a common "draw" function.
Inside the "draw" function you redraw all your UI: apply effects, etc.
That's it, you have it. |
|
[1] https://egghead.io/courses/getting-started-with-redux