Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

stateli-react

1.0.0 • Public • Published

Stateli React

Build Status Coverage Status

A React library to enable Stateli to work with React and Redux Dev Tools.

Installation

Install stateli-react with npm.

$ npm install stateli stateli-react --save

Usage

// in React main component
import React from 'react';
import { StateliStore } from 'stateli';
import { StateliProvider } from 'stateli-react';
import App from './App.jsx'; // <-- your React app component
 
const store = new StateliStore({
  actions: [],
  mutations: [],
  getters: [],
  state: {},
});
 
export default class MainComponent extends React.Component {
  render() {
    return (
      <div>
        <StateliProvider store={store}>
          <App />
        </StateliProvider>
      </div>
    );
  }
}

License

MIT

Install

npm i stateli-react

DownloadsWeekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

28.8 kB

Total Files

28

Last publish

Collaborators

  • avatar