This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Persist Application State locally with useReducer & useContext. | |
// AppReducer.js | |
export const initialState = { | |
number: 0, | |
} | |
export const AppReducer = (state, action) => { | |
switch (action.type) { | |
case 'REPLACE_STATE': |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Regions | |
// | |
// Extend the Backbone.Marionette Regions for custom functionality | |
MWP.module('Common.Regions', function(Regions, MWP, Backbone, Marionette, $, _) { | |
// Overlays | |
Regions.Overlay = Marionette.Region.extend({ |