antd-redux-form

1.8.3 • Public • Published

antd-redux-form

Example

Go to https://minvs1.github.io/antd-redux-form/ to check for examples

Usage

import React from 'react'
import { Form } from 'antd'
import { Field, reduxForm } from 'redux-form'
import { InputField } from 'antd-redux-form'

const AddAccount = () => {
  const handleSubmit = values => {}

  return (
    <Form onSubmit={handleSubmit}>
      <Field
        component={InputField}
        label="Username"
        name="account[username]"
        type="text"
      />
    </Form>
  )
}

const AddAccountFormed = reduxForm({
  form: 'form',
})(AddAccount)

ReactDOM.render(
  <AddAccountFormed />,
  document.getElementById('root')
)

Readme

Keywords

none

Package Sidebar

Install

npm i antd-redux-form

Weekly Downloads

39

Version

1.8.3

License

ISC

Unpacked Size

7.8 MB

Total Files

34

Last publish

Collaborators

  • tomasachmedovas