GithubHelp home page GithubHelp logo

react_people-table-basics's Introduction

React People Table

Here is the working example

Implement the App with 2 pages and ability to select a person in the table.

  1. Create the HomePage available at / with just a title Home Page
  2. Create the PeoplePage available at /people with a title People Page
  3. Use Navigate component to redirect from /home to /;
    • add replace attribute not to save /home URL in the browser history and avoid navigation loop when you press browser Go back button.
  4. Implement NotFoundPage with a title Page not found that is shown for all the other URLs;
  5. Add the Navbar with 2 links Home and People. Active one should have the has-background-grey-lighter class;
  6. Use HashRouter to be able to share a link to any page on Github pages;
  7. Fetch people from the API when PeoplePage is opened;
  8. Pass people to PeopleTable component and render as a table (see the given markup);
  9. Make each name in the table a link a to /people/:slug (including mother and father)
    • create the <PersonLink person={person} /> and use it for all existing people;
    • add the has-text-danger class for women names;
    • if there is no person with a given name among the people just keep the name as a text (not a link);
    • if the motherName or fatherName is empty put - to the table
  10. Highlight the row of the selected person with the has-background-warning class;

Instructions

  • Install Prettier Extention and use this VSCode settings to enable format on save.
  • Implement a solution following the React task guideline.
  • Use the React TypeScript cheat sheet.
  • Open one more terminal and run tests with npm test to ensure your solution is correct.
  • Replace <your_account> with your Github username in the DEMO LINK and add it to the PR description.

react_people-table-basics's People

Contributors

alinamatuschak avatar illiarerun avatar mgrinko avatar mhrynko avatar mykhalenych avatar oablokhina avatar olexandr6 avatar vpolets avatar yuriiholiuk avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.