import React from 'react'; import {Field, reduxForm} from '../../index'; import {IValues} from './initial-values-object-model.test'; const SimpleForm = (props) => { const {handleSubmit, formActions: {resetForm}} = props as IReduxFormInjected<{}>; return (
); }; export default reduxForm({ form: 'simple', initialValues: { profile: { firstName: 'Timofey', lastName: 'Goncharov', }, contacts: { email: 'test@mail.ru', }, additionalInfo: { employed: true, favoriteColor: 'ff0000', more: { notes: 'text for notes', }, }, }, })(SimpleForm);