import React from 'react' // Custom field with non standard setter and getter. Emulate custom component from a library export function NumberField(props: { number: number; update: (value: number) => void }) { return props.update(parseInt(e.target.value))} /> } // Component that needs a different extractor, as it's returning the actual value and not the event. export function DirectReturnInput(props: { value: string; onChange: (v: string) => void }) { return props.onChange(e.target.value)} /> }