-
Notifications
You must be signed in to change notification settings - Fork 9
State
Tyler Faux edited this page Sep 13, 2016
·
1 revision
Your State is just a simple immutable data object, using one of the structures available from the Immutable
library. Consider using a Record
, which enforces a a specific set of allowed keys and has default values.
import {Record, List} from 'immutable'
const State = Record({
todos: List(),
todoInputText: '',
})
export default State