2 ms·
Check out redux-time instead, it has no dependencies on React or any other render library, it simply animates the state changing in the redux store directly as
by nikisweeting 9y ago
Check out redux-time instead, it has no dependencies on React or any other render library, it simply animates the state changing in the redux store directly as a function of time, and you take care of the rendering process!
https://github.com/Monadical-SAS/redux-time https://github.com/Monadical-SAS/redux-time
We built it to develop pure functional, declarative animations for poker (https://oddslingers.com https://oddslingers.com), but it works well for any other games, including 3d ones using ThreeJS.
- finchisko 9y agoVery interesting. By reading docs I like the idea. So if I understand the core concept correctly, there is no React component. You only dispatch animation you want to perform as store action, and get back in timely fashion state updates which you apply as style props to any React component. Is that correct? EDIT: Has been that thing already promoted on HN? Because I see it for the first time.
- nikisweeting 9y agoYes, we have not really promoted it on HN yet because we've been busy this past year and don't want to support too many users, but we've been demoing it at meetups. There is no react element to the library, it simply changes redux store data, the props passed to the components change via mapStateToProps and thus your components are re-rendered whenever React decides to re-render them.