UNPKG
@zedux/stores
Version:
latest (2.0.0-beta.0)
next (2.0.0-rc.19)
2.0.0-rc.19
2.0.0-rc.18
2.0.0-rc.17
2.0.0-rc.16
2.0.0-rc.15
2.0.0-rc.14
2.0.0-rc.13
2.0.0-rc.12
2.0.0-rc.11
2.0.0-rc.10
2.0.0-rc.9
2.0.0-rc.8
2.0.0-rc.7
2.0.0-rc.6
2.0.0-rc.5
2.0.0-rc.4
2.0.0-rc.3
2.0.0-rc.2
2.0.0-rc.1
2.0.0-rc.0
2.0.0-beta.8
2.0.0-beta.7
2.0.0-beta.6
2.0.0-beta.5
2.0.0-beta.4
2.0.0-beta.3
2.0.0-beta.2
2.0.0-beta.1
2.0.0-beta.0
The legacy composable store model of Zedux
omnistac.github.io/zedux/
Omnistac/zedux
@zedux/stores
/
dist
/
esm
/
atom.js
8 lines
(7 loc)
•
253 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
import
{
AtomTemplate
}
from
'./AtomTemplate.js'
;
export
const
atom
= (
key, value, config
) => {
if
(
true
/* DEV */
&& !key) {
throw
new
TypeError
(
'Zedux: All atoms must have a key'
); }
return
new
AtomTemplate
(key, value, config); };