Skip to content

Commit

Permalink
Add README
Browse files Browse the repository at this point in the history
  • Loading branch information
stofolus committed Dec 14, 2022
1 parent 0671c2e commit ffb4c6d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# React validity

## Core principles

- Validators validate one thing and one thing only. This allow for precise error messages that help guide the user.
- Validation does not require a context or the `<Form>` component and can be done from any component. Not just inputs.
- `useValidation` and `<Form>` should only create the absolute minimum amount of re-renders
- Everything should have tests
- There should be a reactive API for building accessable components like an error list

0 comments on commit ffb4c6d

Please sign in to comment.