pagination icon indicating copy to clipboard operation
pagination copied to clipboard

Getting Started

Open tgiardina opened this issue 4 years ago • 3 comments

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:

Screen Shot 2021-03-22 at 12 41 01 PM

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

tgiardina avatar Mar 22 '21 17:03 tgiardina

Same here

Cigan12 avatar May 29 '21 05:05 Cigan12

same

Leooooyx avatar Jul 06 '21 20:07 Leooooyx

try importing the default styles from rc-pagination

import "rc-pagination/assets/index.css"

ma3ve avatar Jul 10 '21 07:07 ma3ve