
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@doctolib/react-autoresize-table
Advanced tools
Autoresize table for React.
npm install @doctolib/react-autoresize-table
React.createClass({
getInitialState() {
return {nbRows: 1};
},
renderRows() {
range(this.state.nbRows)
.map(index => (
<tr key={index}>
<td>{index}</td>
<th>Name #{index}</th>
</tr>
));
},
onNbVisibleRowsChange(nbRows) {
this.setState({nbRows});
},
render() {
return (
<AutoresizeTable onNbVisibleRowsChange={this.onNbVisibleRowsChange}>
<table>
<thead>
<tr>
<th>#</th>
<th>Name</th>
</tr>
</thead>
<tbody>{this.renderRows()}</tbody>
</table>
</AutoresizeTable>
}
})
A DOM element that will be used as a container. Defaults to parentElement. If your parent is not in relative position, you can use container to specify a custom container.
<AutoresizeTable container={document}/>
The minimal row displayed in the table. Defaults to 1.
<AutoresizeTable minRowsDisplayed={4}/>
Called when the number of visible rows changes.
<AutoresizeTable onNbVisibleRowsChange={nbRows => this.setState({nbRows})}/>
The height of rows. By default it will try to get the height of the first row of your table tbody element.
<AutoresizeTable rowHeight={20}/>
MIT
FAQs
Autoresize table for React.
We found that @doctolib/react-autoresize-table demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.