
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
betaWelcome to crud-hook, an open-source library for React that provides a CRUD hook to manage your data.
# with pnpm
pnpm add crud-hook
# with yarn
yarn add crud-hook
# with npm
npm install crud-hook
import { useProTable } from 'crud-hook'
// ...import apis etc.
export const App = () => {
const { tableDom } = useProTable({
apis: {
list: getDictList,
create: createDict,
update: (values, { id }) => updateDict(id, values),
delete: ({ id }) => deleteDict(id),
}
schemas: [
{
title: '#',
dataIndex: 'id',
hideInSearch: true,
hideInForm: true,
},
{
title: 'Key',
dataIndex: 'key',
formItemProps: {
rules: [{ required: true }],
},
},
{
title: 'Value',
dataIndex: 'value',
}
]
})
return <>{tableDom}</>
}
import { useProTable } from 'crud-hook'
// ...import apis etc.
export const App = () => {
const { tableDom, table, form, description } = useProTable({
apis: {
list: getDictList,
create: createDict,
update: (values, { id }) => updateDict(id, values),
delete: ({ id }) => deleteDict(id),
}
config: {
hideApiMessage: true,
},
action: {
actionProps: {
title: 'Action',
},
createText: 'Create',
editText: 'Edit',
deleteText: 'Delete',
detailText: 'Detail',
prepend: ({ record, action }) => [<a onClick={() => action?.reload()}>{record.key}</a>],
},
formProps: {
title: (isEdit, record) => (isEdit ? record?.key : 'Create'),
},
tableProps: {},
schemas: [
{
title: '#',
dataIndex: 'id',
hideInSearch: true,
hideInForm: true,
},
{
title: 'Key',
dataIndex: 'key',
formItemProps: {
rules: [{ required: true }],
},
},
{
title: 'Value',
dataIndex: 'value',
},
{
title: 'Type',
dataIndex: 'value_type',
valueType: 'radio',
valueEnum: {
string: 'String',
number: 'Number',
boolean: 'Boolean',
json: 'Json',
},
initialValue: 'string',
render: (dom) => <Tag bordered={false}>{dom}</Tag>,
},
{
title: 'Descrition',
dataIndex: 'description',
valueType: 'textarea',
hideInSearch: true,
},
{
title: 'Created At',
dataIndex: 'created_at',
valueType: 'dateTime',
hideInForm: true,
},
]
})
return <>{tableDom}</>
}
FAQs
Make CRUD operation easier.
We found that crud-hook demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.