3 ms·
The client handles the dynamic aspect of time, whether that's event handlers that may be invoked later or animations which may run at some point and for some le
by natecavanaugh 9y ago
The client handles the dynamic aspect of time, whether that's event handlers that may be invoked later or animations which may run at some point and for some length of time.
The server only needs to handle it's default, but as other commenters mentioned, lifecycle hooks help manage when some logic gets run.
I think it does take some time to think universally, but it's not all confusion and hair pulling.
In fact, it kinda reminds me of writing testable code. You need to separate some concerns, but ultimately, it's a set of conventions that help you get there.
I can tell you, there are plenty of times when even a rule of two isn't worth the maintenance effort that's caused by rendering HTML in two different places.