diff --git a/README.md b/README.md index 28c0520..8d8991c 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,8 @@ Let's define some validations in React components ```jsx import React, { useState } from 'react'; import { useValidate } from 'reactrix'; +// Custom React Component to display messages. +import { Alert } from './AlertComponent'; function Login(props) { const [data, setData] = useState({}); @@ -63,12 +65,11 @@ function Login(props) { email: 'required|email', password: 'required|string' }); - } return ( -
); @@ -128,6 +130,9 @@ export { default as es } from '../locale/spanish.json'; ## 🚦Common Rules +This is the list of all the rules you can validate form inputs against. When using multiple rules, separate them with a pipe `|`. + + | Keyword | Description | |------------------|:----------------------------------------------------------------------------------------------------------------| | **Common Validator** |