diegohaz / generact

Generate React components by replicating your own
https://git.io/generact
MIT License
1.48k stars 64 forks source link

Generating Store Logic - Actions, Reducers, Selectors and Sagas #7

Open kamescg opened 7 years ago

kamescg commented 7 years ago

Maybe this might be integrated in one of the tools you published, but I really like the Redux store approach in the Arc repo.

In addition to generating Generact creating components, would you be open to adding support for Generact generating Redux store logic: actions, reducers, selectors and sagas into the Generact CLI?

I would love to contribute and help write the code if you're open to a pull request?

diegohaz commented 7 years ago

I'm thinking about this. But on redux it's very hard to keep it "working no matter how the app is structured".

Maybe it should be another project (generux? hahaha)

kamescg commented 7 years ago

I like the idea of Generux :)

I was thinking it could follow the convention used in the Arc repo. It doesn't have to work for every project, just every project that follows a certain strategy/approach to managing state.

My initial thoughts were the CLI could contain more in-depth questions are also possibly interact with a JSON file to pull a seed variables.