DEV Community

domwokorach
domwokorach

Posted on

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)