
Security News
The Code You Didn't Write Is Still Yours to Defend
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.
react-valid-forms
Advanced tools
npm install react-valid-forms --save
import {
Form,
Input,
Select,
Textarea,
Radio,
Checkbox,
method
} from 'forms';
<Input
className="formas"
name="name1"
placeholder="写点啥"
rules={/^\d+$/}
errorMessage="请输入数字"
onlyBlurThrow
team='team2'
/>
<Select
className="formas"
name="name1"
placeholder="写点啥"
rules={this.fun}
errorMessage="请输入数字"
onlyBlurThrow
team='team2'
/>
<Textarea
className="formas"
name="name1"
rules={this.fun}
errorMessage="请输入数字"
onlyBlurThrow
team='team2'
/>
<Checkbox name="checkbox1" value="yes" checked required errorMessage="必选一个" minNum={2} maxNum={3}/>
<Checkbox name="checkbox1" value="no" minNum={2} errorMessage="至少选两个"/>
<Checkbox name="checkbox1" value="no" minNum={3} errorMessage="最多选三个"/>
<Checkbox
name="checkbox1"
rules={function(values){
return true
}}
checked
errorMessage="反正就是选错了"
/>
<Radio name="radio1" value="1" required/>
<Radio name="radio1"
rules={function(value){
return value=='3';
}}
onChange={function(){console.log('onChange')}}
errorMessage="来自radio的错误"
/>
<Radio name="radio1" checked value="3"/>
<Form onSubmit={this.submithandle.bind(this)} className="formas" team="teamform"></Form>
let team = 'team2'//需要验证的组或组值
method.valid(team,(result) => {}).then((result) => {});
method.getValues(team);
FAQs
react、valid、form、input、select、checkbox、radio、textarea
The npm package react-valid-forms receives a total of 0 weekly downloads. As such, react-valid-forms popularity was classified as not popular.
We found that react-valid-forms demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.