Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
https://github.com/day8/re-frame
Notably the author of re-frame has been weary of hooks.
I think that’s for a good reason. The approach in re frame feels like the best way to manage state so far for a react based app. Everything that changes state flows through an event. State can only be observed through subscriptions. Side effects are isolated to their own type of event. Debugging and testing are so straight forward with these concepts.
Redux got close but it has two problems in my mind. Like hooks, it encapsulates for no good reason. Put the state in one thing that you can observe holistically before and after pure events. It also has too much boiler plate.
> Your UI should be a pure function of your state.
Except this has always been BS.
https://blog.metaobject.com/2018/12/uis-are-not-pure-functio...
(Read to the end...)
https://github.com/reactjs/react-basic/pull/12
Related posts
- Goodbye, Clean Code
- Reflet introduces descriptions: a new kind of polymorphic query
- Reflet: building Re-frame + React based web apps with graph and non-graph data models
- Ideas for a bachelor thesis about Clojure and/or functional programming
- How do people work with UI (windows, controls, events, etc) in purely functional languages ?