```
var createStore = require('redux').createStore;
var combineReducers = require('redux').combineReducers;
var Provider = require('react-redux').Provider;
var toastrReducer = require('react-redux-toastr').reducer;
var toastr  = require('react-redux-toastr').toastr;

var reducers = {
  toastr: toastrReducer 
}; 
var reducer = combineReducers(reducers);
var store = createStore(reducer);

<div>
<Provider store={store}>
  <Toaster/>
</Provider>
  <Button onClick={() => toastr.success('The title', 'The message', {
  timeOut: 1000, // by setting to 0 it will prevent the auto close
  onCloseButtonClick: () => toastr.removeByType('success'),
  showCloseButton: true, // true by default
})}> Success </Button>

</div>
```