Skip to content
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
Clone this wiki locally