
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.
react-composite-table
Advanced tools
[](https://travis-ci.org/davidcsejtei/react-composite-table) [.
These are the steps:
Rules:
If you have the following data (e.g.: list of users) for the table:
[
0: {
id: 9,
username: "testadmin",
email: "admin@example.net",
name: "Test Admin",
roles: {
"SUPER_ADMIN",
"MANAGER"
}
}
1: {
id: 13,
username: "firsteditor",
email: "editor@example.net",
name: "First Editor",
roles: {
"EDITOR"
}
}
]
And want to show ID, username and name attributes in the table:
import Table2 from 'react-composite-table';
// You have to write all of your actions and add to the as a props
import { updateUserNameField, deleteRow } from '../actions/index';
class UserTable extends Component {
render() {
if(this.props.allUsers) {
const columns = [
{
label: 'ID',
name: 'Id',
value: 'Id',
filterable: true,
filterType: 'text',
filterableProperty: 'Id',
editable: false,
sortable: true,
sortableProperty: 'Id'
},
{
label: 'Username',
name: 'username',
value: 'username',
filterable: true,
filterType: 'text',
filterableProperty: 'username',
editable: false,
sortable: true,
sortableProperty: 'username'
},
{
label: 'Name',
name: 'name',
value: 'name',
filterable: true,
filterType: 'text',
filterableProperty: 'name',
editable: true,
updateFunction: this.props.updateUserNameField,
sortable: true,
sortableProperty: 'name'
}
];
return (
<Table2
data={this.props.allUsers}
columns={columns}
onDeleteRow={this.props.deleteRow}
/>
);
} else {
return (
<span className="icon-spinner icon-spinner-large"></span>
);
}
}
}
export default connect(null, {updateUserNameField, deleteRow})(UserTable);
FAQs
[](https://travis-ci.org/davidcsejtei/react-composite-table) [
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.