```jsx import { Debug } from 'informed'; import { Form, Input, Button } from 'YourComponents'; const validate = value => { if (value && value.length < 5) return 'Field must be at least five characters'; }; const asyncValidate = username => { return new Promise((resolve, reject) => { setTimeout(() => { // Simulate username check if (['joseph', 'tanner', 'billy', 'bobby'].includes(username)) { return resolve('That username is taken'); } // Simulate request faulure if (username === 'reject') { return reject(new Error('Unable to validate username.')); } return resolve(); }, 2000); }); }; const Example = () => ( <>
> ); export default Example; ```