All Projects → robinweser → alveron-old

robinweser / alveron-old

Licence: MIT License
Opinionated Elm-inspired Redux Component Architecture for React

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to alveron-old

reactive state
An easy to understand reactive state management solution for Flutter.
Stars: ✭ 19 (+11.76%)
Mutual labels:  state-management, state
Nanny-State
simple state management
Stars: ✭ 68 (+300%)
Mutual labels:  state-management, state
PageStatusTransformer
A low invasive state management on Android
Stars: ✭ 12 (-29.41%)
Mutual labels:  state-management, state
k-ramel
State manager for your components apps, the safe and easy way
Stars: ✭ 20 (+17.65%)
Mutual labels:  state-management, state
Vuex-Alt
An alternative approach to Vuex helpers for accessing state, getters and actions that doesn't rely on string constants.
Stars: ✭ 15 (-11.76%)
Mutual labels:  flux-architecture, state-management
vuex-but-for-react
A state management library for React, heavily inspired by vuex
Stars: ✭ 96 (+464.71%)
Mutual labels:  state-management, state
knockout-store
State management for Knockout apps.
Stars: ✭ 37 (+117.65%)
Mutual labels:  state-management, state
teaful
🍵 Tiny, easy and powerful React state management
Stars: ✭ 638 (+3652.94%)
Mutual labels:  state-management, state
xstate-viz
Visualizer for XState machines
Stars: ✭ 274 (+1511.76%)
Mutual labels:  state-management, state
stoxy
Stoxy is a state management API for all modern Web Technologies
Stars: ✭ 73 (+329.41%)
Mutual labels:  state-management, state
riduce
Get rid of your reducer boilerplate! Zero hassle state management that's typed, flexible and scalable.
Stars: ✭ 14 (-17.65%)
Mutual labels:  state-management, state
react-wisteria
Managing the State with the Golden Path
Stars: ✭ 18 (+5.88%)
Mutual labels:  state-management, state
restate
A redux fractal state library 🕷
Stars: ✭ 55 (+223.53%)
Mutual labels:  state-management, state
particule
Fine-grained atomic React state management library
Stars: ✭ 31 (+82.35%)
Mutual labels:  state-management, state
jedisdb
redis like key-value state management solution for React
Stars: ✭ 13 (-23.53%)
Mutual labels:  state-management, state
RxReduxK
Micro-framework for Redux implemented in Kotlin
Stars: ✭ 65 (+282.35%)
Mutual labels:  state-management, state
vue
Vue integration for Nano Stores, a tiny state manager with many atomic tree-shakable stores
Stars: ✭ 25 (+47.06%)
Mutual labels:  state-management, state
concave
🧐 Lens-like state management (for React).
Stars: ✭ 13 (-23.53%)
Mutual labels:  state-management, state
eventrix
Open-source, Predictable, Scaling JavaScript library for state managing and centralizing application global state. State manage system for react apps.
Stars: ✭ 35 (+105.88%)
Mutual labels:  state-management, state
closeable-map
Application state management made simple: a Clojure map that implements java.io.Closeable.
Stars: ✭ 42 (+147.06%)
Mutual labels:  state-management, state

Depreacted! This is the old alveron package which has been deprecated in favor of a newer version without Redux. Check out the new alveron package which was once called react-woodworm.

alveron

Alveron is a highly opinionated state architecture for React using Redux.
It is heavily inspired by The Elm Architecture and aims to simplify component-based state management.

TravisCI Test Coverage npm downloads npm version

Installation

Alveron requires react-redux to be installed in your project. Therefore, react must also be installed.

yarn add alveron react react-redux

Benefits

  • locally-scoped state
  • plays well with third-party reducer
  • single file for markup & application state
  • simple & compact interface

The Gist

import { createContainer } from 'alveron'

// the initial state
const model = 0

// the reducer functions
const update = {
  increase: state => state + 1,
  decrease: state => state - 1
}

// a functional component which gets both the state
// and the action dispatcher passed via props
const view = ({ state, increase, decrease }) => (
  <div>
    <span>Counter: {state}</span>
    <button onClick={increase}>Increase</button>
    <button onClick={decrease}>Decrease</button>
  </div>
)

// the single higher-order function that links
// everything together and returns a React component
const Counter = createContainer({
  view,
  update,
  model
})()

// usage
<Counter />

Documentation

Examples

License

Alveron is licensed under the MIT License.
Documentation is licensed under Creative Common License.
Created with by @rofrischmann and all the great contributors.

Sponsor

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].