AFB is a ReactJS Form Builder plugin that is easy to integrate in any react app. It also supports drag and drop updates of form elements.
Use the package manager npm to install.
npm install azlan-form-builder
import FormBuilder from "azlan-form-builder";
/// then use it as
const [items, setItems] = useState([]);
const formUpdate = (newItemsList) => {
console.log(newItemsList);
/// you can call an API to save form elements as soon as they are updated
};
<FormBuilder onUpdate={formUpdate} items={items} />
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.