Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
mb-react-infinite-scroll
Advanced tools
Readme
#infinite-scroll
##安装方法
npm i -S mb-react-infinite-scroll
##用法
import InfiniteScroll from 'mb-react-infinite-scroll';
...
<InfiniteScroll onLoad={this.loadMore.bind(this)} hasMore={true} height="100%">
{(()=> {
return this.state.items.map((item)=> {
return <Item text={item}/>
})
})()}
</InfiniteScroll>
onLoad:在该组件滚动到底部时调用,获取更多数据,需要返回Promise类型对象
height:
请参考example
onLoad
加载数据用的 function, 要求返回 Promiseretry
失败后点击重试的 function, 要求返回 PromisehasMore
是否有更多数据, 在没有数据后设置该属性为true,将不再请求height
默认100%,用来确保该组件高度小于内容以便出现滚动条langNoMore
没有更多数据的文本内容langLoading
加载中的文本内容FAQs
##安装方法
The npm package mb-react-infinite-scroll receives a total of 9 weekly downloads. As such, mb-react-infinite-scroll popularity was classified as not popular.
We found that mb-react-infinite-scroll 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.