form_validations_p4
v1.3.0
Published
Email and Password Validation
Downloads
3
Maintainers
Readme
install package
Here example for react code import React from 'react'; import { validateEmail, validatePassword } from 'fromvalidations';
function App() { const handleFormSubmit = (e) => { e.preventDefault();
const email = e.target.email.value;
const password = e.target.password.value;
const isEmailValid = validateEmail(email);
const isPasswordValid = validatePassword(password);
console.log(isEmailValid,isPasswordValid); // Perform further actions based on the validation results };
return ( Email: Password: Submit
</form>
{/* {{isEmailValid}} */} ); }
export default App;