---
# System prepended metadata

title: global-configuration(名稱管理空間)
tags: [React]

---

# global-configuration(名稱管理空間)
###### tags: `React`
* 避免全域變數可能造成的汙染覆蓋，自行建立名稱管理空間
[https://openhome.cc/Gossip/CodeData/EssentialJavaScript/NameSpace.html]

* react-global-configuration
[https://github.com/morenofa/react-global-configuration#readme]

1. `set( configuration, [options] )`
	[options] freeze : true ; assign : false ; environment : 'global'
2. `setEnvironment( environment )`
3. `get( [key], [default] )`
4. `serialize( [environment] )`
5. `reset()`