@kabbi/react-redux-form
Version:
Create Forms Easily with React and Redux
26 lines (23 loc) • 430 B
JavaScript
// ./store.js
import {
applyMiddleware,
createStore,
} from 'redux';
import {
combineForms,
} from 'react-redux-form';
import thunk from 'redux-thunk';
import createLogger from 'redux-logger';
const store = window.store = createStore(combineForms({
field: {
model: '',
label: '',
controls: [],
},
currentField: null,
fields: [],
}), applyMiddleware(
thunk
,createLogger()
));
export default store;