
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-nested-table
Advanced tools
A react component table for rendering nested json data automatically
npm install --save react-nested-table
import ReactNestedTable from 'react-nested-table';
var jsonData = [{...}];
<ReactNestedTable data={jsonData} />
import ReactNestedTable from 'react-nested-table';
var jsonData = [{
name: 'John Jacobs',
companyName: 'Hudson, Rohan and Shanahan'
},{
name: 'Candace Jast',
companyName: 'Schuppe, Jerde and Mann'
}];
var headersMap = {
name: 'Full Name',
companyName: 'Company Name'
}
<ReactNestedTable data={jsonData} headersMap={headersMap} />
import ReactNestedTable from 'react-nested-table';
// customize each cell display
var handleCellDisplay = function(key, data) {
if (key === 'email') {
const MailLink = <a href={'mailto:'+data}>{data}</a>;
// options are refered to https://github.com/react-tools/react-table#columns
return {
width: 200,
Cell: cellData => <MailLink />
}
}
if (key === 'id') {
return {
style: {
color: 'red'
}
}
}
if (key === 'bs') {
return {
width: 200,
style: {
fontWeight: 700,
backgroundColor: 'yellow'
}
}
}
}
var jsonData = [{
id: 0,
bs: 'B2B productize e-services',
email: 'Gwen.Kihn@hotmail.com'
},{
id: 1,
bs: '24/7 engineer users',
email: 'Wilburn.Bailey@yahoo.com'
}];
<ReactNestedTable data={jsonData} onCellDisplay={handleCellDisplay} />
FAQs
react-nested-table React component
We found that react-nested-table demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.