Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nofluxjs/noflux
Simple, stupid state management for JavaScript apps.
https://github.com/nofluxjs/noflux
flux mobx noflux redux
Last synced: 22 days 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 (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-18T07:20:27.000Z (over 6 years ago)
- Last Synced: 2024-08-05T14:16:17.657Z (4 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) | [![npm (scoped)](https://img.shields.io/npm/v/@noflux/state.svg?maxAge=86400)](https://www.npmjs.com/package/@noflux/state) | [![Dependency Status](https://david-dm.org/nofluxjs/noflux-state.svg)](https://david-dm.org/nofluxjs/noflux-state) | [![devDependency Status](https://david-dm.org/nofluxjs/noflux-state/dev-status.svg)](https://david-dm.org/nofluxjs/noflux-state?type=dev) | [![Build Status](https://travis-ci.org/nofluxjs/noflux-state.svg?branch=next)](https://travis-ci.org/nofluxjs/noflux-state) |
| [@noflux/react](https://github.com/nofluxjs/noflux-react) | [![npm (scoped)](https://img.shields.io/npm/v/@noflux/react.svg?maxAge=86400)](https://www.npmjs.com/package/@noflux/react) | [![Dependency Status](https://david-dm.org/nofluxjs/noflux-react.svg)](https://david-dm.org/nofluxjs/noflux-react) | [![devDependency Status](https://david-dm.org/nofluxjs/noflux-react/dev-status.svg)](https://david-dm.org/nofluxjs/noflux-react?type=dev) | [![Build Status](https://travis-ci.org/nofluxjs/noflux-react.svg?branch=next)](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/)