How to use the es/index.createShuttleTree function in es

To help you get started, we’ve selected a few es examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jaylone / redux-shuttle / example / src / entry.js View on Github external
import React, { Component } from 'react';
import ReactDom from 'react-dom';
import { createStore, combineReducers, bindActionCreators } from 'redux';
import { Provider } from 'react-redux';

import { bindShuttle, createShuttleTree } from 'es/index';
import helper from 'es/underscored';
import shuttle from './shuttle';

const reducers = createShuttleTree({ shuttle });

@bindShuttle(shuttle)
class App extends Component {
  setList() {
    const props = this.props;

    props.actions.setList(['Winter', 'is', 'coming.']);
  }

  render() {
    const props = this.props;

    console.log(props);

    return (
      <div></div>