## About component
npm install @inftechsol/reactstrap-form-validationIt is a simle form component with validator. This component's base is reactstrap Form, and Inputs and all props comes from there.
This component use React v18.1.0, react-dom v18.1.0,
Bootstrap v5.1.3 and reactstrap v9.0.2.
npm i @inftechsol/reactstrap-form-validation
``jsx
import { useState } from 'react';
import { RVForm, RVFormGroup, RVInput, RVFormFeedback } from '@inftechsol/reactstrap-form-validation';
import { Button, Label } from 'reactstrap';
const App = () => {
const defaultObj = {
address: '',
name: '',
age: ''
};
const style = {
padding: '20px'
};
const [obj, setObj] = useState(defaultObj);
const handleInputChange = (e) => {
const { target } = e;
const { name, type, checked, value } = target;
const newValue = type === 'checkbox' ? checked : value;
setObj({
...obj,
[name]: newValue
});
};
const onSubmit = (e) => {
e.preventDefault();
console.log('Event: ', e);
};
return (
export default App;
``
All comes from reactstrap Forms and Inputs except RVForm onSubmitFrom. See
Reactstrap form and input props