
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
react-form-builder-component
Advanced tools
React JS Form Builder package from json
npm install --save react-form-builder-component
Form Builder
import { FormBuilder } from 'react-form-builder-component'
...
<FormBuilder/>
Render Form
import { FormRender } from 'react-form-builder-component'
...
<FormRender/>
Combining FormBuilder with FormRender to preview form on the go
import React, { useState } from 'react'
import { FormBuilder, FormRender } from 'react-form-builder-component'
import 'react-form-builder-component/dist/index.css'
const predefinedForm = {
"title": "Form Builder Demo",
"description": "Demo of form builder component for React JS",
"required": ["fullname"],
"properties": {
"intro": {
"title": "Introduction",
"description": "This is a paragraph element. You can update me or add new form elements."
},
"fullname": {
"title": "Full Name",
"description": "Enter Full Name"
}
},
"ui": {
"intro": {
"widget": "paragraph"
},
"fullname": {
"className": "text-success"
}
},
"values": {}
}
const App = () => {
const [form, setFormState] = useState({})
const handleFormSubmit = (e) => {
e.preventDefault()
// handle form builder property save action
console.log(JSON.stringify(form))
}
const handleSubmitDummy = (payload) => {
// handle form submit action
}
const onFormBuilderUpdate = (payload) => {
setFormState(payload)
}
return <div className="container">
<div className="row">
<div className="col-12 col-sm-4"><FormBuilder onSave={handleFormSubmit} formState={predefinedForm} onChange={onFormBuilderUpdate} /></div>
<div className="col text-muted border-left ">
<h2>Preview</h2>
<div className="form-preview border">
<FormRender {...form}
onsubmit={handleSubmitDummy} /></div>
</div>
</div>
</div>
}
export default App
MIT © ktmcodelabs
FAQs
Form Builder package from json
We found that react-form-builder-component 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
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.