mantra-sample-blog-app
mantra-sample-blog-app copied to clipboard
Redux branch
Working redux example (tests not updated yet). Let's correct me if files are not placed correctly or against mantra specs.
@ShockiTV, thanks for doing this! I'm learning Redux at the moment. How's your experience with Redux? Is it better than using ReactiveDict? ReactiveDict-based localstate gets a little messy for me now. I'm looking to switch to redux. Would love to hear about your experience first before I switch.
It is my first redux experience :D Still I am little confused form this, as mantra actions are quite complex. And in Redux naming Actions are something else. But if I put only redux Actions as Mantra actions, there would have to be very ugly high level reducers calling smaller reducers. I did not feel very good with that. Let's wait what maintainers will think :D
@ShockiTV regarding actions/reducers etc. You could take a look at using the redux-ducks
concept > https://github.com/erikras/ducks-modular-redux
Maybe also relevant: https://github.com/kadirahq/mantra/issues/103
I'm also looking for the correct way to integrate Redux with MantraJS. Maybe we can learn something from each other.
I've been working on a boilerplate (work in progress) using React-Router, Redux, React-Router-Redux, and React Helmet, take a look here. It has a working example. Feedback welcome.
@cheersjosh I'm looking forward to a more comprehensive example, using containers, data fetching etc. I'm happy to discuss it :)