Crates.io | redux-rs |
lib.rs | redux-rs |
version | 0.3.3 |
source | src |
created_at | 2018-04-18 22:49:55.246145 |
updated_at | 2022-03-13 19:31:51.008401 |
description | A Rust implementation of Redux. |
homepage | https://github.com/redux-rs/redux-rs |
repository | https://github.com/redux-rs/redux-rs.git |
max_upload_size | |
id | 61328 |
size | 73,129 |
A Rust implementation of Redux.
Redux, originally implemented in JavaScript, is an functional approach to state management. The core concept is that you have a state and a reducer, a function to create a new state from the old one and an action, a description of what to change. Because the state itself is immutable, this results in a very clean way of managing application state, where every possible action is defined beforehand and dispatched later on.
You might want to read the documentation, which also provides examples.
Also consider checking out the examples.
To run an example:
cargo run --example <name of the example>