JSTQL-JS-Transform/output_testing/358store.js

13 lines
377 B
JavaScript
Raw Normal View History

import { createStore } from 'redux';
function reducer(state = 0, action) {
switch (action.type) {
case 'increment':
return state + 1;
default:
return state;
}
}
// Because this file is declared above both Modern and Legacy folders,
// we can import this from either folder without duplicating the object.
export const store = reducer |> createStore(%);