2 ms·
That’s a good point. There’s something in the difference between the two communities then, where React’s tends to be encouraging of memoized components and shou
by jsf01 6y ago
That’s a good point. There’s something in the difference between the two communities then, where React’s tends to be encouraging of memoized components and shouldComponentUpdate while mithril’s tends to advise against those methods. The blog post behind this thread is a prime example.
- dragonwriter 6y ago> There’s something in the difference between the two communities then, where React’s tends to be encouraging of memoized components and shouldComponentUpdate I haven't seen that. > The blog post behind this thread is a prime example. But it's...not at all an example of what you describe. The blog post explains how things work and how to optimize, it doesn't encourage optimizing without demonstrated need, and the "even better" optimization approach it suggests isn't using memoization or shouldComponentUpdate, but instead paying attention to the basic component structure.