An open API service indexing awesome lists of open source software.

https://github.com/ripeworks/antd-crud-resource

CRUD data models using built-in components from antd
https://github.com/ripeworks/antd-crud-resource

Last synced: 4 months ago
JSON representation

CRUD data models using built-in components from antd

Awesome Lists containing this project

README

          

# antd-crud-resource
CRUD data models using built-in components from antd

## Example

```js
import React from 'react'
import Resource from 'antd-crud-resource'
import UserForm from './UserForm' // This is an antd form

export default class UserResource extends React.Component {
onSave = (values, id) => {
// api.update(id, values)
}

onRemove = (user) => {
// api.delete(user.id)
}

render () {
const {data} = this.props

return v ? 'Yes' : 'No'}
]}
form={UserForm}
onSave={this.onSave}
onRemove={this.onRemove}
/>
}
}
```