9 ms·
The single big thing that makes me go back and forth about whether I (deep down) like these systems is the surrender of control. On the one hand: It is powerfu
by dc443 9y ago
The single big thing that makes me go back and forth about whether I (deep down) like these systems is the surrender of control.
On the one hand: It is powerful at automating some the typical tedium you always have. It gives you a better chance to end up with a decent view model, by forcing it upon you.
On the other hand: You lose control. Almost always you can gain it back, but it is an uphill battle. If you know you need low level control (for example over complex animations and interactions in your UI) you've got to think carefully.
It all comes back to perspective. As an interaction engineer I really hate the process of trying to make a specific animation work the way I want inside of a React managed DOM. As an application developer, the purity of the approach is extremely attractive.
Also I must brush up on Grid. It's about time we got rid of god damn tables.
- mephitix 9y agoI agree, that's why I like styled components so much. It's all based on vanilla CSS - there's no new syntax. I use animations, pseudo-classes, etc all with styled-components. Animations with react are cumbersome. So I try as much as possible to fall back to CSS animations - they yield better perf anyway. With styled components this becomes easier since you can have CSS values derived from React props.