1.1.3 • Published 4 years ago

react-jet v1.1.3

Weekly downloads
56
License
ISC
Repository
github
Last release
4 years ago

react-jet

Replace redux and react context

NPM

install size dependencies

install

npm install react-jet

use

Initial state

import { initial } from 'react-jet';

initial([
  {
    name: 'time',
    defaultValue: 2018
  }
]);

Connect to components

import React from 'react';
import { connect } from 'react-jet';

function DisplayTime(props) {
  return <div>{props.time}</div>;
}

export default connect(
  DisplayTime,
  ['time']
);

Change state

import { state } from 'react-jet';

state.time = 2019;
1.1.3

4 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago