Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
React
实现的 Form
组件, 和 rsuite-schema
结合使用可以很好的对表单数据进行校验。
form-lib
中主要提供了两个组件: <Form>
和 <Field>
, <Field>
必须包含在 <Form>
内,例如:
<Form>
<Field />
<Field />
</Form>
<Form>
提供了 values
和 defaultValues
为整个表单设置值,对应的分别是受控和非受控表单。
同时提供了 onChange
(数据发生改变时候触发) 和 onCheck
(数据校验时候触发) 事件。
<Field>
必须拥有 name
属性, 并且属性值必须和 SchemaModel
声明的校验对象字段名一致,
<Field>
默认是一个 input[type='text']
组件, 如果需要自定义,设置一个 accepter
属性,
该属性是设置需要受理的表单组件。受理的组件必须实现 value
, defalutValue
,onChange
和 onBlur
等 API
详细的使用,查看示例代码,和 API文档。
安装
npm install form-lib --save
FAQs
Form component for React
The npm package form-lib receives a total of 22 weekly downloads. As such, form-lib popularity was classified as not popular.
We found that form-lib 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
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.