Giter Club home page Giter Club logo

reactive-loop's Introduction

An rxjs-based reactive loop and a link to React

If you have used React, chances are that you have heard of Flux. If you've heard of Flux, chances are you've heard of redux.

You wouldn't be alone to think of reactive-loop as yet another flux-thingy.

Even so, after having used redux and similar styles of setting up a frontend, I still have found value in putting this together and see if somebody else likes to base a flux-like architecture on rxjs' Observables and some polish around it.

Much of the usage revolves around the possibillity to define functions of the form

function(action, state) {
  return state'
}

(which in reactive-loop are called AppFuncs). While testing the whole thing a number of additional necessary features came to be.

  • Ability to return a Promise<State>
  • Ability to dispatch actions as well as Observables that return actions.
  • A way to handle errors while looping around
  • A builder pattern to set up an application, with the ability to add literal objects as apps based on conventions

Getting started

In the repository you will find two samples (for now), which show off a number of possibilities available with reactive-loop. You can run

npm run samples:run

You also have the documentation.

reactive-loop's People

Contributors

flq avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.