ra-utils
v0.1.1
Published
react-admin utils
Downloads
3
Readme
ra-utils
react-admin utils
createDataProvider
Write react-admin
data-provider per each resource manually.
import { createDataProvider, Resource } from 'ra-utils'
const posts: Resource = {
getList: () => {
return getPostListSomehow()
}
// ...
}
const users: Resource = {
// ...
}
const provider = createDataProvider({
posts,
users,
})
License
MIT