rescript-model-view-poc VS rescript-use-tea

Compare rescript-model-view-poc vs rescript-use-tea and see what are their differences.

rescript-model-view-poc

Proof of concept for Elm like architecture in Rescript (by mishaszu)

rescript-use-tea

A React hook for unified purely-functional state and effect management (by mjal)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
rescript-model-view-poc rescript-use-tea
1 1
1 1
- -
10.0 10.0
almost 3 years ago over 1 year ago
ReScript TypeScript
- MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.

rescript-model-view-poc

Posts with mentions or reviews of rescript-model-view-poc. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-23.
  • Why I Use Elm in 2023
    4 projects | news.ycombinator.com | 23 May 2023
    Not that I can share unfortunately. But here is the implementation I got the idea from. https://github.com/mjal/rescript-use-tea/blob/master/src/Use...

    I defined the actions a little differently and followed the rescript-react pattern of having effects return an Option of a cleanup fn but most of the idea is there.

    Looking around just now I also found this PoC of someone doing a very similar thing but all inline with react. https://github.com/mishaszu/rescript-model-view-poc/tree/mai...

    Really the only jump you need from react to the elm architecture is having the reducer be (State, Action) -> ('State, Effects) instead of simply returning the new state alone. The then you have a useEffect that invokes the side effect fns, passing in dispatch so they can send updates back to the reducer & so reducer stays pure. There are a bunch of different ways to set that up, and honestly a lot of react apps blunder into an accidental and incomplete version of this anyway it's such a natural model.

rescript-use-tea

Posts with mentions or reviews of rescript-use-tea. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-23.
  • Why I Use Elm in 2023
    4 projects | news.ycombinator.com | 23 May 2023
    Not that I can share unfortunately. But here is the implementation I got the idea from. https://github.com/mjal/rescript-use-tea/blob/master/src/Use...

    I defined the actions a little differently and followed the rescript-react pattern of having effects return an Option of a cleanup fn but most of the idea is there.

    Looking around just now I also found this PoC of someone doing a very similar thing but all inline with react. https://github.com/mishaszu/rescript-model-view-poc/tree/mai...

    Really the only jump you need from react to the elm architecture is having the reducer be (State, Action) -> ('State, Effects) instead of simply returning the new state alone. The then you have a useEffect that invokes the side effect fns, passing in dispatch so they can send updates back to the reducer & so reducer stays pure. There are a bunch of different ways to set that up, and honestly a lot of react apps blunder into an accidental and incomplete version of this anyway it's such a natural model.

What are some alternatives?

When comparing rescript-model-view-poc and rescript-use-tea you can also consider the following projects:

Elm - Compiler for Elm, a functional language for reliable webapps.

hn-search - Hacker News Search