https://github.com/nofluxjs/noflux
Simple, stupid state management for JavaScript apps.
https://github.com/nofluxjs/noflux
flux mobx noflux redux
Last synced: 4 months ago
JSON representation
Simple, stupid state management for JavaScript apps.
- Host: GitHub
- URL: https://github.com/nofluxjs/noflux
- Owner: nofluxjs
- License: cc-by-4.0
- Created: 2017-05-15T14:48:52.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-18T07:20:27.000Z (almost 7 years ago)
- Last Synced: 2024-11-20T20:39:14.274Z (5 months ago)
- Topics: flux, mobx, noflux, redux
- Homepage: https://noflux.js.org/
- Size: 263 KB
- Stars: 46
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-star-libs - nofluxjs / noflux
README
# Noflux
*Simple, stupid state management for JavaScript apps.*
## Packages
| Package | Version | Dependencies | DevDependencies | Build |
|--------|-------|------------|----------|----------|
| [@noflux/state](https://github.com/nofluxjs/noflux-state) | [](https://www.npmjs.com/package/@noflux/state) | [](https://david-dm.org/nofluxjs/noflux-state) | [](https://david-dm.org/nofluxjs/noflux-state?type=dev) | [](https://travis-ci.org/nofluxjs/noflux-state) |
| [@noflux/react](https://github.com/nofluxjs/noflux-react) | [](https://www.npmjs.com/package/@noflux/react) | [](https://david-dm.org/nofluxjs/noflux-react) | [](https://david-dm.org/nofluxjs/noflux-react?type=dev) | [](https://travis-ci.org/nofluxjs/noflux-react) |## Example
Online debugging: [https://codesandbox.io/s/z47wLwP8](https://codesandbox.io/s/z47wLwP8).
```jsx
import React, { Component } from 'react';
import { connect, state } from '@noflux/react';state.set({
name: 'jack',
});@connect
export default class App extends Component {
render() {
return (
state.set('name', e.target.value)} />
Hello, my name is {state.get('name')}
)
}
}
```## Documentations
* [English](https://noflux.js.org/en/)
* [简体中文](https://noflux.js.org/zh/)