Open
Description
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:
npx create-react-app pagination
cd pagination
npm i
Install rc-pagination
:
npm i rc-pagination
Update src/App.js
to include a Pagination
component:
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
Metadata
Metadata
Assignees
Labels
No labels