1.4.3 • Published 7 years ago

react-json-form v1.4.3

Weekly downloads
5
License
MIT
Repository
github
Last release
7 years ago

react-json-form Build Status

react-json-form is an attempt at simplifying the creation of forms that output nested JSON objects.

Installation

Yarn

$ yarn add react-json-form

NPM

$ npm install --save react-json-form

Usage

import React from 'react'
import { render } from 'react-dom'
import { BasicForm as Form, createInput } from 'react-json-form'

const Input = createInput(props => <input {...props} />)

render(
  <Form onSubmit={json => console.log(json)}>
    Name: <Input type="text" path="name" /><br />
    Age: <Input type="number" path="age" /><br />
    <button type="submit">Show me the JSON</button>
  </Form>,
  document.getElementById('root')
)
1.4.3

7 years ago

1.4.2

7 years ago

1.4.1

7 years ago

1.4.0

7 years ago

1.3.4

7 years ago

1.3.2

7 years ago

1.3.1

7 years ago

1.3.0

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.3

7 years ago