score:1

Accepted answer
const input = "i love STACKOVERFLOW"
const words = input.split(" ")
const capitalized = words.map(word => word.charAt(0).toUpperCase() + word.slice(1))
const result = capitalized.join(" ")
console.log(result)

score:1

// somewhere outside form or component
const upper = value => value && value.toUpperCase()

// somewhere in your form
<Field
  name="shout"
  component="input"
  type="text"
  placeholder="Shout something!"
  normalize={upper}
/>

Related Query

More Query from same tag