Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gabemeola/aktie
Module State Management
https://github.com/gabemeola/aktie
Last synced: about 6 hours ago
JSON representation
Module State Management
- Host: GitHub
- URL: https://github.com/gabemeola/aktie
- Owner: gabemeola
- License: mit
- Created: 2017-12-01T03:32:10.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-06-26T09:37:38.000Z (over 2 years ago)
- Last Synced: 2024-10-12T19:44:37.184Z (about 1 month ago)
- Language: JavaScript
- Size: 41 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Aktie
Module State ManagementExample Component
```js
import React, { Component } from 'react';
import { Protect } from 'components';
import { connect } from 'utils/predux';class ProtectContainer extends Component {
constructor(props) {
super();
this.changeName = this.changeName.bind(this);
}
changeName() {
this.props.predux.setValue('name', `gabe-${Math.random()}`);
}
render() {
return (
Name = {this.props.name}
)
}
}export default connect([
'name'
])(ProtectContainer);
```