reflux / refluxjs

A simple library for uni-directional dataflow application architecture with React extensions inspired by Flux
BSD 3-Clause "New" or "Revised" License
5.36k stars 330 forks source link

Feature Request: Make Reflux available for Functional Components #554

Open dutchman71 opened 3 years ago

dutchman71 commented 3 years ago

I really like the idea of Reflux and would like to use it. Unfortunately, our project only uses functional components. From the documentation I didn't see a way to use Reflux with functional components. If there is a way, please let me know. Thanks! Chris

eek commented 3 years ago

I really like the idea of Reflux and would like to use it. Unfortunately, our project only uses functional components. From the documentation I didn't see a way to use Reflux with functional components. If there is a way, please let me know. Thanks! Chris

Reflux.js is no longer maintained, hence there will be no support for functional components.

We've moved away from it a few years ago, and the choice was MobX - https://github.com/mobxjs/mobx-react which can be used in an almost identical way and it's actually faster and easier to implement. Especially if you enabled decorators.