Skip to content

Commit

Permalink
Update validation.md (#4458)
Browse files Browse the repository at this point in the history
schema is not a variable here, and yourSchema is unused. I believe the form input here should be schema={yourSchema}

Co-authored-by: Heath C <51679588+heath-freenome@users.noreply.github.com>
  • Loading branch information
pgli and heath-freenome authored Jan 24, 2025
1 parent 70d7c73 commit 3f9760b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/docs/docs/usage/validation.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ import * as precompiledValidator from 'path_to/yourCompiledSchema';

const validator = createPrecompiledValidator(precompiledValidator as ValidatorFunctions);

render(<Form schema={schema} validator={validator} />, document.getElementById('app'));
render(<Form schema={yourSchema} validator={validator} />, document.getElementById('app'));
```

### Dynamically pre-compiling validators
Expand Down

0 comments on commit 3f9760b

Please sign in to comment.