crubier•

This looks very promising as it deals with the only major pain point of redux. I love the idea. Composability is key

5
BTMPL•

with the only major pain point of redux.

What exactly would that be?

1
crubier•

The fact that related things are split in different places, leading to two different hierarchies: component hierarchy on one side and reducer/state hierarchy on the other side, as explain in the above article.

4
BTMPL•

The fact that related things are split in different places,

You mean that redux-stuff lives independently of your component? Well, for me thats a big plus as it allows for greater abstraction, code reuse and testing. Or did you mean something else?

3
crubier•

Yes I meant what you said. I agree with your point, but it seems to me that this separation is a bit too brutal in redux. Let's be honest, the two hierarchies are often very similar.

2
drcmda•

I see separation of concerns as reduxes strong point to be honest. This is what allows me to fashion components around the state model as a simple dress-up, being able to move them around or exchange them quickly. This hasn't ever been a pain point for us.

1
paul_42__•

it looks interesting, I'd like to see a better 'hands on lab' format, like you see in tutorials. One example I followed for express is scotch.io, they generally build things in steps and it helps me understand it more. I think this has promise though, sort of very closely merging component and component state.

2
acjohnson55•

I like this a lot.

It's very similar to where I'm trying to take React Redux Controller (RRC) (see #14 and #15). The use of injectState to get around awkward manual passing of props also echos one of the original motivations behind RRC. We use context directly, but always with the thought of eventually replacing that with a custom HOC.

One cool thing I like about Redux is the way you can have multiple parts of your state blob react to various actions, in ways that are decoupled. I suppose you could get a similar effect by composing a bunch of state-changing effects into a larger effect. You'd lose decoupling but gain cohesiveness (all the effects visible in one scope).

I kind of disagree with the concept that components want to be colocated with their state. But that actually doesn't seem to be core to this library. You could just as well only use Freactal at the top of your component tree, and you'd effectively avoid mixing your model and view layers together.

I'm very impressed with how much thought has gone into Freactal. Shame about the name though :)

2