npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

sodium-frp-react

v0.3.1

Published

Higher order components to easily use SodiumJS Functional Reactive Programming with Facebook React

Downloads

7

Readme

sodium-frp-react

Higher order components to easily use SodiumJS Functional Reactive Programming with Facebook React

Motivation

React and Redux are a very nice paradigm influenced by ELM. But there are downsides.

For example, it is adviced to work with normalized data, and that requires the introduction of lookup by identifier. This is error prone, just like imperative pointers are. Furthermore reducers are nothing more than state monads, so the order in which reducers are executed determines the final output. From the point of view of reasoning about code, not much is gained here IMO.

Furthermore presentational components must bubble up events to container components, resulting in a lot of boilerplate code.

And last but not least, one has to be really careful to get good performance, using reselect as much as possible, resulting in more boilerplate. And although React updates with immutable data are fast, they will never be as fast as in object-oriented two-way binding systems.

Wouldn't it be great if we could get the benefits of React, functional referential transparancy, easy two-way binding and performance, and local reasoning of state?

This tiny package aims to provide just that, thanks to SodiumJS. Sodium performs updates in a deterministic way, without glitches, unlike libraries like RxJS. It is a true functional reactive programming (FRP) library, in the spirit of its original inventors, Conal Elliott and Paul Hudak.

Install

npm i sodium-frp-react

Usage

Checkout the demo

TODO: Provide a tutorial

See also

License

MIT