Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const clickTrackEnhancer = createStore => (
reducer,
initialState,
enhancer
) => {
const store = createStore(reducer, initialState, enhancer);
const clickTracker = getClickWriter(store);
document.body.addEventListener('click', clickTracker);
document.body.addEventListener('change', clickTracker);
return store;
};