J1marotta / json-forms

making a form in React using a JSON schema

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dynamic Json Schema Forms.

This program will iterate over a JSON schema located in the schema folder and convert into a dynamic form using React

The bulk of the logic is inside Input.js, this is given the values from the schema, and it decides what shape to make out of them.

If you want to change the schema you must include a top level key for your new field, and the only required fields are

 title: :: string,
 required: :: bool, 
 type: :: string (to match HTML 5 input types),
 ```

To run the program first install dependencies with `npm i` you can then use `npm run start` to run. 



This was bootstrapped with Create-react-app 

About

making a form in React using a JSON schema


Languages

Language:JavaScript 85.6%Language:HTML 9.1%Language:CSS 5.3%