buntec / ff4s Goto Github PK
View Code? Open in Web Editor NEWA purely functional web UI library for Scala.js
Home Page: https://buntec.github.io/ff4s/
License: Apache License 2.0
A purely functional web UI library for Scala.js
Home Page: https://buntec.github.io/ff4s/
License: Apache License 2.0
I'm enjoying using ff4s on a simple UI. I really enjoy programming with cats and pure functional style, so I appreciate your work on this.
I've shown this library to a few people and one place they always trip up is explaining with Store is named what it is. The main thing it seems to be about is the updating logic of (Action, State) => State
. Or someone with more FP experience might notice that it something like Action => cats.data.State[State, Option[IO[Unit]]
I don't have a great suggestion for you, but I noticed you are still making incompatible changes, so I thought I would bring the issue up. Something more direct like Update, or maybe TransitionMatrix.
Just thought I would share my feedback.
I have some code that looks like this:
textArea(
`type` := "text",
cls := "codein",
value := text,
onInput := { te =>
Some(
Action.CodeEntered(
te.currentTarget.asInstanceOf[HTMLTextAreaElement].value
)
)
}
)
It would be nice if the type of the event allowed me to access the HTMLTextAreaElement without the cast. Maybe it is possible now, but I didn't see how.
Thank you.
I was wondering why the store function looks like:
Action => State => (State, Option[F[Unit]])
vs
Action => State => (State, F[Unit])
Since we know that F[_]: Concurrent
and Concurrent
extends Applicative
so we could return F[Unit]
via Concurrent[F].unit
instead of None
.
There is possibly an efficiency motivation, but if there isn't, I think the simpler type signature would be cleaner to use.
This looks like a great library that I'm excited to try. One of the reasons I love typed functional programming is that the type signatures are often great documentation.
Would you be willing to publish the scala docs for this library so that we can easily see the types without having to click through the GitHub UI or checking the project out locally?
Thanks for your work on this!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.