
Research
/Security News
11 Malicious NuGet Tools Pose as Game Cheats to Drop a Windows Host-Surveillance Payload
11 malicious NuGet tools pose as game cheats to deploy Windows payloads, track hosts, and use Google Sheets for telemetry and control.
form-render-widgets
Advanced tools
npm i form-render-widgets
# or
yarn add form-render-widgets
import React, { useState } from 'react'
import FormRender from 'form-render/lib/antd'
import SCHEMA from './schema.json'
import RichTextEditor from 'form-render-widgets'
export default function Demo() {
const [formData, setData] = useState(SCHEMA.formData || {})
const [valid, setValid] = useState([])
const onSubmit = () => {
console.log(formData)
if (valid.length > 0) {
alert(`校验未通过字段:${valid.toString()}`)
} else {
alert(JSON.stringify(formData, null, 2))
}
}
return (
<div style={{ padding: 60 }}>
<FormRender
{...SCHEMA}
formData={formData}
onChange={setData}
onValidate={setValid}
widgets={{
editor: RichTextEditor
}}
/>
<button onClick={onSubmit}>提交</button>
</div>
)
}
schema.json file:
{
"propsSchema": {
"type": "object",
"properties": {
"inputName": {
"title": "简单输入框",
"type": "string"
},
"inputName2": {
"title": "简单输入框",
"type": "string",
"ui:widget": "editor"
}
},
"required": []
},
"formData": {}
}
FAQs
常用的form-render自定义组件
The npm package form-render-widgets receives a total of 2 weekly downloads. As such, form-render-widgets popularity was classified as not popular.
We found that form-render-widgets 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.

Research
/Security News
11 malicious NuGet tools pose as game cheats to deploy Windows payloads, track hosts, and use Google Sheets for telemetry and control.

Research
/Security News
4 compromised asyncapi packages deliver miasma botnet loader on macOS, Linux and Windows.

Research
/Security News
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.