Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rpaging

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rpaging

react pagination

  • 0.0.5
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

rpaging

一款简洁的 react 分页组件

Install

	npm install rpaging --save

Example

	import React,{ Component } from "react";
	import Pagination from "rpaging";
	class App extends Component{	
		async componentDidMount(){
			await setTimeout(()=>{
				new Promise((res)=>{
					this.setState({
						renderPage:true
					})
				})
			},2000);
		}

		render(){
			let Page = this.state.renderPage?(
				<Pagination config = {{
					async paging(pageObj){
						let data = await fetch(URL).then((res)=>res.json());
					}
				}}
				></Pagination>
			):"";
			return(
				<div>
					{ Page }
				</div>
			);
		}
	}

Tips

This component uses CSS MODULES,ensure you have opened CSS MODULES before you use it.

FAQs

Package last updated on 10 May 2017

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc