import React from 'react' import { fieldPresets, createField, Form, Field } from 'react-advanced-form' import { Input } from '@examples/fields' import { Select } from '@examples/fields/Select' import Button from '@examples/shared/Button' export const initialValues = { firstName: 'Kate', username: 'admin', billingAddress: { street: 'Baker st.', }, deliveryAddress: { street: 'Sunwell ave.', }, } /** * Create a field class where "initialValue" is set * for all instances of that class. */ const Occupation = createField({ ...fieldPresets.select, initialValue: 'developer', })(Select) export default class InitialValues extends React.Component { render() { return (

Initial values

) } }