UNPKG
immreact
Version:
latest (0.2.0)
0.2.0
0.1.0
0.0.1
Use react classes with an immstruct structure
immreact
/
examples
/
actions
/
state.js
9 lines
(5 loc)
•
118 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
import
Immreact
from
'../../lib'
const
state =
new
Immreact
.
State
(
'app'
, {
counters
: [] })
export
default
state