We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Confused how to get started. Happy to create a PR with some additional docs if someone can point me in the right direction.
This is my result when trying to create a very simple example using CRA:
Create a react app using CRA:
npx create-react-app pagination cd pagination npm i
Install rc-pagination:
rc-pagination
npm i rc-pagination
Update src/App.js to include a Pagination component:
src/App.js
Pagination
import logo from './logo.svg'; import './App.css'; import Pagination from 'rc-pagination'; . . . <Pagination onChange={() => alert("HI")} defaultCurrent={1} total={5} /> </header> </div> . . .
Start the dev server
npm start
The text was updated successfully, but these errors were encountered:
Same here
Sorry, something went wrong.
same
try importing the default styles from rc-pagination
import "rc-pagination/assets/index.css"
No branches or pull requests
Confused how to get started. Happy to create a PR with some additional docs if someone can point me in the right direction.
Problem
This is my result when trying to create a very simple example using CRA:
Steps to Reproduce
Create a react app using CRA:
Install
rc-pagination
:Update
src/App.js
to include aPagination
component:Start the dev server
The text was updated successfully, but these errors were encountered: