- Replace
<your_account>
with your Github username in the DEMO LINK - Follow the React task guideline
- Rename
.tsx
files to.jsx
- use
eslint-config-react
in.eslintrs.js
- Install all the NPM packages you need and types for them.
- Use HashRouter on
src/index.tsx
- Implement
HomePage
available at/
with just a titleHome page
- Implement
PeoplePage
available at/people
with a titlePeope page
- Redirect to
/
from/home
(use Navigate) - Implement
NotFoundPage
with a titlePage not found
that is shown for all the other URLs - Add a
Header
visible everywhere with navigation links to both pages - Create
getPeople
method fetchingpeople
from API whenPeoplePage
is opened- Find a
mother
and afather
bymotherName
andfatherName
and add them to the person for future use
- Find a
- Implement
PeopleTable
component accepting an array of people as a param and rendering them in a table It should show these columns:name
sex
born
died
mother
father
<PeopleTable people={people} />
<table className="PeopleTable"> <th>...</th> <tbody>...</tbody> </table>
- add
border-collapse: collapse
style to the table
- Implement
PersonRow
component accepting aperson
and displaying all the data described above<tr class="Person"> <td></td> ... <td></td> </tr>