Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@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.
The npm package @doctolib/react-autoresize-table receives a total of 3 weekly downloads. As such, @doctolib/react-autoresize-table popularity was classified as not popular.
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 a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.