4 ms·
Why did you decide not to use Immutable(JS or other) as part of the boilerplate?
by Murkin 11y ago
Why did you decide not to use Immutable(JS or other) as part of the boilerplate?
- mxstbr 11y agoThis is something I've been thinking about recently, I decided that for smaller projects having ImmutableJS included isn't very helpful. It's a lot of code overhead for not that much benefit. Instead I Object.freeze the state[0], so developers get a warning when they mutate the state directly. I'm happy to change this though, what do you see as the main benefits of including Immutable(JS or other)? [0]: https://github.com/mxstbr/react-boilerplate/blob/master/js/reducers/homeReducer.js#L25 https://github.com/mxstbr/react-boilerplate/blob/master/js/r...
- Murkin 11y agoLooks like the boilerplate here is ground work for large projects. Generally Immutable makes the reducers syntax much cleaner and allows to more easily "query" the state. I am myself torn between using it and thus asked..
- mxstbr 11y agoI opened an issue in the react-boilerplate repo, feel free to jump in and add your two cents: https://github.com/mxstbr/react-boilerplate/issues/46 https://github.com/mxstbr/react-boilerplate/issues/46