3 ms·
By the way "declarative" doesn't really mean anything with very specific boundaries. Would've been that better if you had some `increment(state)` that updated
by epolanski 4y ago
By the way "declarative" doesn't really mean anything with very specific boundaries.
Would've been that better if you had some `increment(state)` that updated a ref anyway?
- rmrfchik 4y agoNo, it's has the same semantic. Method can return the whole new state, the changed fields or actions to be taken. Or method can call the passed continuation with changed values instead of return.