Skip to content

Instantly share code, notes, and snippets.

@alexbenic
alexbenic / Pagination.tsx
Created June 13, 2019 21:37
Example of composition of React components in TypeScript
import React, { Component } from 'react';
import { Pagination as ReactBootstrapPagination } from 'react-bootstrap';
interface PaginationProps extends ReactBootstrapPagination.PaginationProps {
onPaginationItemClick: React.MouseEventHandler;
totalPages: number;
activePage: number;
}
export class Pagination extends Component<PaginationProps> {