1.1.3 • Published 3 years ago

react-jet v1.1.3

Weekly downloads
56
License
ISC
Repository
github
Last release
3 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

3 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago