Skip to content
New issue

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

Getting Started #330

Open
tgiardina opened this issue Mar 22, 2021 · 3 comments
Open

Getting Started #330

tgiardina opened this issue Mar 22, 2021 · 3 comments

Comments

@tgiardina
Copy link

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
@Cigan12
Copy link

Cigan12 commented May 29, 2021

Same here

@Leooooyx
Copy link

Leooooyx commented Jul 6, 2021

same

@ma3ve
Copy link

ma3ve commented Jul 10, 2021

try importing the default styles from rc-pagination

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants