-
-
Save ahamedali95/298764d2c265ab2479b6424226463b5c to your computer and use it in GitHub Desktop.
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
const book = (() => { | |
return { | |
books: [] | |
}; | |
})(); | |
const bookReducer = (state=book, action) => { | |
console.log(state); //=> { books: [] } | |
//logic here | |
}; | |
export default bookReducer; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment