DEV Community

domwokorach
domwokorach

Posted on

3 3

React component that renders a table with pagination. Coding Challenges - your solution(!)

Image description

import React from 'react';

const USER_URL = 'https://example.com/api/users';

export default function Table() {
return (
  <div>
   <table className='table'>
    <thead>
     <tr>
      <th>ID</th>
      <th>ID</th>
      <th>ID</th>
     </tr>
    </thead>
   <tbody>
  // y
   </tbody>
  </table>
  <section className='pagnation'>
   <button className='first-page-btn'>first</button>
   <button className='previous-page-btn'>first</button>
   <button className='next-page-btn'>first</button>
   <button className='last-page-btn'>first</button>
  </section>
 </div>
 );
};
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay