React Schema, render element only type at schema.json.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
public
src
README.md
package.json

README.md

react-form-schema-json

Schema

[
  {
    "type"        : "inputText",
    "_id"         : "text",
    "label"       : "Text",
    "placeholder" : "Enter Text here"
  },
  {
    "type"        : "inputPassword",
    "_id"         : "password",
    "label"       : "Password",
    "placeholder" : "Enter password here"
  },
  {
    "type"        : "inputOption",
    "_id"         : "option",
    "label"       : "Option",
    "options"     : [
      {
        "text":"Yes",
        "value":true
      },
      {
        "text":"No",
        "value":false
      }
    ]
  }
]

Running :

$ npm install
$ npm start

open your browser.

Thanks to create-react-app boilerplate.

  • py