Skip to content

Getting Started #330

Open
Open
@tgiardina

Description

@tgiardina

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions