New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

easy-reactstrap-form

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

easy-reactstrap-form

Simple JSON form components with reactstrap

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

This is a Reactjs component meant to be used within an application for building forms easyly.

INSTALATION

npm i easy-reactstrap-form

USE

In your wrapping component, import the ezform component:

import EasyForm from 'EasyForm.js'

STATE

Create a state as follows:

const [formData, setFormData] = useState({});

const selectSet = { form1: setFormData, };

FIELDS

EasyForm recieves an Array of fields with its properties:

const fields = [ { type: 'email', name: 'email', id: 'exampleEmail', label: 'Email' }, { type: 'password', name: 'password', id: 'examplePassword', label: 'Password' }, { type: 'select', name: 'select', id: 'exampleSelect', label: 'Select', options: [ 1, 2, 3, 4, 5 ] }, { type: 'textarea', name: 'text', id: 'exampleText', label: 'Text Area' } ];

IMPLEMENTATION

Implement the component as follows:

""

Keywords

react

FAQs

Package last updated on 30 Dec 2020

Did you know?

Socket

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.

Install

Related posts