0.0.4 • Published 6 years ago

aktie v0.0.4

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

Aktie

Module State Management

Example Component

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 (
            <div>
                <h1 onClick={changeName}>Name = {this.props.name}</h1>
                <Protect />
            </div>
        )
    }
}


export default connect([
    'name'
])(ProtectContainer);
0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago