Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/redux-rs/redux-rs
:package: A Rust implementation of Redux.
https://github.com/redux-rs/redux-rs
redux rust state state-management
Last synced: 3 months ago
JSON representation
:package: A Rust implementation of Redux.
- Host: GitHub
- URL: https://github.com/redux-rs/redux-rs
- Owner: redux-rs
- License: mit
- Created: 2019-01-20T20:17:46.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-01-30T10:23:36.000Z (9 months ago)
- Last Synced: 2024-07-06T05:14:45.803Z (4 months ago)
- Topics: redux, rust, state, state-management
- Language: Rust
- Homepage:
- Size: 85 KB
- Stars: 232
- Watchers: 7
- Forks: 16
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status][build-img]][build-url]
[![Crates.io][crates-io-img]][crates-io-url]
[![Documentation][docs-img]][docs-url]# redux-rs
> A Rust implementation of Redux.
## Redux
[Redux][redux-wikipedia-url], [originally implemented in JavaScript][redux-js-url], 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.## Usage
You might want to read the [documentation][docs-url], which also provides examples.
Also consider checking out the [examples](examples).
To run an example:
```
cargo run --example
```[build-img]: https://github.com/jeroenvervaeke/redux-rs/actions/workflows/build.yml/badge.svg
[build-url]: https://github.com/jeroenvervaeke/redux-rs/actions/workflows/build.yml
[crates-io-img]: https://img.shields.io/crates/v/redux-rs.svg
[crates-io-url]: https://crates.io/crates/redux-rs
[docs-img]: https://docs.rs/redux-rs/badge.svg
[docs-url]: https://docs.rs/redux-rs
[redux-wikipedia-url]: https://en.wikipedia.org/wiki/Redux_(JavaScript_library)
[redux-js-url]: https://redux.js.org