Created
August 2, 2019 17:51
-
-
Save Weiyuan-Lane/21f88d6972c16d4051ac0fb2a0d3a3a2 to your computer and use it in GitHub Desktop.
Create a pre declared singleton using export
This file contains hidden or 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
import Store from 'store' | |
const storeSingleton = new Store() | |
export default storeSingleton |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment