purescript-concur-core
Cycle.js
purescript-concur-core | Cycle.js | |
---|---|---|
3 | 11 | |
29 | 10,235 | |
- | -0.0% | |
4.7 | 4.1 | |
3 days ago | 5 months ago | |
PureScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
purescript-concur-core
-
Flame: A PureScript front-end framework inspired by the Elm architecture
1. Application wide state is easy since you can always access state from parent components in child components. The problem occurs when you want to update parent state from child components.
Fortunately, you can make your own abstractions in Concur. For example, you can use a "Wire" - which lets multiple child components share and update parts of the parent's state (https://github.com/purescript-concur/purescript-concur-core/...). Note how this abstraction just uses the high level Concur API, and doesn't depend on the UI backend. With a wire the code might look something like this -
-- A wire into parent's state, accessible using `with`, and updateable using `wire.send`
-
Shpadoinkle UI: Web development for Haskell
Have you looked at signals? AFAICT they are exactly what you are looking for. A signal is just Cofree widget (https://github.com/purescript-concur/purescript-concur-core/blob/master/src/Concur/Core/FRP.purs#L26).
Cycle.js
- Could angular possibly compile rxjs Ahead Of Time?
-
Can be the future of JSX be Functional first?
Seems like you might be interested in this
-
Front-end Guide
Cycle
-
[AskJS] Opinions In Favor of Coding Document Fragments in JS?
This is the standard way of going about things in Mithril and Cycle. Elm as well doesn't use an XML knockoff for view code- and as a fun fact, the original version of React didn't either.
- What is a really cool thing you would want to write in Rust but don't have enough time, energy or bravery for?
- Solid.js feels like what I always wanted React to be
-
callbag-rs: An implementation of the callbag spec
For example, an FRP framework (created by the same author who later wrote the callbag spec): https://cycle.js.org/
-
Does it make sense to use Scala.js/Laminar in the context of a startup?
TypeScript is relatively mainstream at this point, and I think that's good news. If you want to crank the type-safety and pure FP dials on it to 11, you certainly can do that. I have a project that I've based largely on this post, including the "hardcore" section. However, instead of Redux and otherwise plain React, I've chosen to use Cycle.js and the lessons from this post to use React in a very purely Functional Reactive Programming Way.
-
Flame: A PureScript front-end framework inspired by the Elm architecture
This post links to a PureScript project that is probably the easiest PS framework around.
ReScript + rescript-react is a good alternative. Less safe, waaaay more verbose; but backed by Facebook.
This is quite cute (in TypeScript though): https://github.com/cyclejs/cyclejs
And Yew is super cool, it goes the WASM route (in Rust): https://github.com/yewstack/yew
-
My Open Source Journey
From now on I was on what I would call a typical open source trajectory. I used the Cycle.js framework to rewrite my frontend and in that process I hit some walls. I eventually figured that the error was on my side and that I was just missing some information to avoid the error. To spare others the hours of debugging I started to contribute small patches to the documentation. At the same time I also found some missing features that I voiced in GitHub issues.
What are some alternatives?
purescript-concur-react - Concur UI Framework for Purescript
RxJS - A reactive programming library for JavaScript
purescript-flame - Fast & simple framework for building web applications
MobX - Simple, scalable state management.
shpadoinkle
Bacon - Functional reactive programming library for TypeScript and JavaScript
elm-ts - A porting to TypeScript featuring fp-ts, rxjs6 and React
Most.js - Ultra-high performance reactive programming
purescript-concur-streaming-poc - A small POC for Concur async streaming without Free or Aff
Cycle.js (react-native) - Cycle.js driver that uses React Native to render
purescript-refract - Optical Purescript UI library based on React and the Elm architecture, but without the boilerplate.
Elm - Compiler for Elm, a functional language for reliable webapps.