|
|
|
|
|
by jokethrowaway
911 days ago
|
|
I did a small project recently (a form to edit N instances of an object, each containing N instances of other objects, so standard input, add / delete buttons, saving to server) and I decided to not use React or any form of templating, just DOM. It reminded me of when I used to ship jQuery projects. It was refreshingly simple and, despite being more verbose, it was clear what everything would happen once a certain event would happen. With a bit of clever refactoring dealing with elements factories wasn't too bad, even without a templating engine. Not having to think "How is this going to be rendered by React, is it going to be efficient or trash performance" was great and I think it's intrinsic of picking a certain abstraction and we'll always have that. Sure, the better the abstraction the less this problem happens eg. Solid is calling the component function once, which makes things easy to reason about |
|