rescript-model-view-poc

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

Rescript-model-view-poc Alternatives

Similar projects and alternatives to rescript-model-view-poc

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better rescript-model-view-poc alternative or higher similarity.

rescript-model-view-poc reviews and mentions

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.

Stats

Basic rescript-model-view-poc repo stats
1
1
10.0
over 2 years ago

The primary programming language of rescript-model-view-poc is ReScript.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com