redux 中类名的变化

className changes in redux

我有一个应该有 css 动画的组件,通过简单的类名更改就可以很容易地制作它。 我应该选择这个解决方案还是它在 redux 中不正确并且我需要触发操作来更改类名?

如果简单,就去做吧!

我建议你阅读它:https://medium.com/@dan_abramov/you-might-not-need-redux-be46360cf367#.ci8uyhdm9

If you feel pressured to do things “the Redux way”, it may be a sign that you or your teammates are taking it too seriously. It’s just one of the tools in your toolbox, an experiment gone wild.