webpack-bootstrap-ui-kit/src/js/store/index.js

20 lines
373 B
JavaScript
Raw Normal View History

2022-05-03 20:50:57 +02:00
import configure from './configure'
const store = configure()
2021-08-10 01:27:45 +02:00
2022-05-03 20:50:57 +02:00
/* import {
2021-08-10 01:27:45 +02:00
PageControls
2022-05-03 20:50:57 +02:00
} from './components' */
2021-08-10 01:27:45 +02:00
2022-05-03 20:50:57 +02:00
// const pageControls = new PageControls(store)
2021-08-10 01:27:45 +02:00
2022-05-03 20:50:57 +02:00
store.subscribe(() => console.log(store.getState()))
2021-08-10 01:27:45 +02:00
store.dispatch({
2022-05-03 20:50:57 +02:00
type: 'counter/incremented',
})
2021-08-10 01:27:45 +02:00
store.dispatch({
2022-05-03 20:50:57 +02:00
type: 'counter/incremented',
})
2021-08-10 01:27:45 +02:00
store.dispatch({
2022-05-03 20:50:57 +02:00
type: 'counter/decremented',
})