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)
(examples below are using Bootstrap 4.x styles - for Bootstrap 5.x, see the Bootstrap Usage Guide)
Example: Class Component
For further details, see the react-responsive-pagination documentation