1.2.3 • Published 7 years ago

g-bookings-cart v1.2.3

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

bookings-cart

Widget to view G Adventures bookings that are in-progress, optioned and confirmed

NPM JavaScript Style Guide

Install

npm install --save bookings-cart

Usage

import React from 'react';
import ReactDOM from 'react-dom';

// eslint-disable-next-line
import polyfill from 'babel-polyfill'

import {createStore, applyMiddleware, compose, combineReducers} from 'redux';
import {Provider} from 'react-redux';
import createSagaMiddleware from 'redux-saga';

import {Cart, cartReducer, cartSaga} from 'bookings-cart';


const sagaMiddleware = createSagaMiddleware()
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
const store = createStore(
    combineReducers({
        bookings: cartReducer
    }),
    composeEnhancers(applyMiddleware(sagaMiddleware)),
)

sagaMiddleware.run(cartSaga)

ReactDOM.render(
    <Provider store={store}>
        <Cart/>
    </Provider>,
    document.getElementById('root')
);

Preview:

bookings-cart-ux

License

MIT © gadventures

1.2.3

7 years ago

1.2.2

7 years ago

1.2.0

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago