Live Demo - try resizing your browser to see the component automatically adjust to the available width.
NOTE: the striped region illustrates the component's container, it's not part of the component 🙂
Example: Functional Component (using hooks)
Example: Class Component
For further details, see the react-responsive-pagination documentation