React component for the mailcheck library. Reduce user-misspelled email addresses in your forms by suggesting a right domain when your users misspell it in an email address.
npm install --save react-mailcheck
import MailCheck from 'react-mailcheck'<MailCheck =><div><input="email"==/>suggestion &&<div>Did you mean suggestionfull?</div>}</div>)}</MailCheck>
- email: String
Required The input email that you want to check.
- children: (suggestion: Object | null) => ReactElement
suggestion: The suggestion object passed back to you, or null if mailcheck has nothing to suggest. The suggestion object has the following members:
address: 'test' // the address; part before the @ signdomain: 'gmail.com' // the suggested domainfull: 'email@example.com' // the full suggested email
- Return: must return a React element to render.