score:24

Accepted answer

For giving your forms dynamic key you should use form attribute on your TodoForm component:

renderTodo() {
    if (this.state.editMode) {
      return (
        <TodoForm
          form={'todo-' + this.props.todo.id}  
          todo={this.props.todo} changeTodoEditMode={this.changeTodoEditMode}
          updateTodo={this.props.updateTodo}
        />
      );
    }
 [...]
}

(Instead of this.props.todo.id could be your randomNum function call)

API reference: http://redux-form.com/6.0.2/docs/api/Props.md/


Related Query

More Query from same tag