-
Notifications
You must be signed in to change notification settings - Fork 40
Description
Hi!
Sorry if what I am about to say is complete rubbish. I am new to reason and reason-react and maybe I just didn't grasp some basic concepts yet.
In the intro you are saying:
You might not need this library, especially so in a language which provides good enough construction blocks out of the box. ReasonReact already comes with reducers!
I don't understand this point. You are talking about built-in reducers like it is an alternative to a global state. But we are mainly using redux for managing app state, not a component state. In what way built-in reducers are the replacement for redux?
If I understand Dan's point that you referenced, he is not saying that you don't need redux. He is saying that you maybe don't need redux. But there are a lot of cases when you can benefit from using it.
And then later you are saying:
Hopefully, the above comparisons demonstrated that you might not need an extra-react state management technique at all; passing props down works well in Reason-React, and since props are well-typed, adding/remove them takes seconds. Keep state/props management simple so that you can spend the learning budget elsewhere!
We are using global state when an application starts to grow past the point when passing props down starts to be unhealthy, when you want your components to be agnostic to place and time. Imagine moving component from one part of your app to other. In redux-app you just moving it, that's it. In "classic-react-app" if you don't have single-global-compositor-component which basically have your global state, you have to tune something. Your middleman components have to know something that they don't need to know, just to pass some props down.
Am I missing something? Maybe you can elaborate a little bit more in your docs as to what real alternatives we have to reductive and why using reductive is counter-productive in reason-world?
It is kind of depressing to use a library that asks me not to use it and with bold font :)