3 ms·
True, but at the same time if you're building an app the number of times when you think "I want to render this HTML without hooking it into the data store, othe
by onion2k 3mo ago
True, but at the same time if you're building an app the number of times when you think "I want to render this HTML without hooking it into the data store, other components on the page, data fetch layer, logging implementation, etc" is literally zero.
React can't do the thing people building apps with React never do is not an argument against React.
React is for building React apps, in case that wasn't obvious.
- socketcluster 2mo agoPeople who enjoyed riding horses in the past would not see the benefits of cars either. Multi-pass rendering with multi-pass template placeholder substitution is very useful because you can have an entire complex component hierarchy declared in one place, very succinctly, in one file... Different components in the hierarchy can render data at any depth below them in the hierarchy (any level of nesting) without child components having to know about it. The child components just take the partially pre-filled template as their input and fill in remaining placeholders. The logic/markup is much more succinct and the components are much more flexible and composable. It promotes better separation of concerns.