@agoransson/formhelper
v1.0.22
Published
Simple helper for generating react forms from javascript objects.
Downloads
154
Readme
Bootstrap Form Helper
A simple library to generate react forms from js objects.
Dependencies
This library is built for react only.
Example
const loginForm = [
[
{type: 'email', name: 'email', placeholder: 'E-post', value: email, onChange: handleEmail}
],
[
{type: 'password', name: 'password', placeholder: 'Lösenord', value: password, onChange: handlePassword}
],
[
{type: 'submit', title: 'Logga in'},
]
];
return (
<Form>
renderForm(loginForm)
</Form>
);