4 ms·
This is just crazy React devs have to think about this. No other framework makes you do this. Vue, Angular, Ember. The computer should be doing this for us.
by dham 6y ago
This is just crazy React devs have to think about this. No other framework makes you do this. Vue, Angular, Ember. The computer should be doing this for us. It knows the properties we define, where we access them. Let the computer do what it does best. It's generally not a huge issue with React DOM but in React Native the performance issues will the kill the app. Luckily we have Mobx which solves these issues.
- sktrdie 6y agoExactly what I thought! Mobx creator did a talk recently on re-rendering: https://www.youtube.com/watch?v=NBYbBbjZeX4 https://www.youtube.com/watch?v=NBYbBbjZeX4 Makes me wonder why React doesn't work in the same way... using observable state.
- ng12 6y agoYou really don't have to think about it. This all falls into the category of performance hacking. React renders are cheap, DOM renders are expensive. Extraneous React renders are only a potential issue if you're doing something ugly in your components.