Giter Site home page Giter Site logo

2021-06-25's Introduction

If you cannot view the video, download vlc player. It will be able to play anything.

For both assignments regarding React:

  1. Use customs hooks and/or context. It's important that you show you understand how to create custom hooks and understand context, how to create and use context and pass it down your app.

  2. Use functional components

  3. Seperate components and hooks into individual files

  4. Check the console to make sure you fix all errors. You shouldn't have any errors.

A note on the search function: You can make the search as you type or wait until you finish typing and click 'search'. In real production apps, the search should happen as you type if all the data has been loaded to the local cache. If it hasn't been loaded to the local cache, then only send the search to the server after the user has finished typing. Since this is a quick and simple test, either is okay.

After you have completed the assignments, please push it to your own repos on GitHub and let me know the links. I'll go read your code.

Thank you.


ASSIGNMET #1


REACT AND REST API

You will use React to build a sample page to retrieve data from https://hn.algolia.com/api using the search api.

api: http://hn.algolia.com/api/v1/search?query=

On your page, please make these features:

  1. Search box to search Hacker News
  2. Display the results in a table (don't use any packages).
  3. Delete each result from the table
  4. Load more (only load 10 results each time). Load More button should only be shown when there are results.

To see what the finish product looks like, see the video.


ASSIGNMET #2


REACT AND GRAPHQL API

You will use the countries api at https://countries.trevorblades.com/ and Apollo Client and React Router.

On your page, please make these features:

  1. A table on the top with all the continents. Each continent has a link. When users click on the continent link, it displays another table below.

  2. The second table lists all the countries on that continent, with the following information: Code, Name, Native, Capital, Currency, Language

To see what the finish product looks like, see the video.

2021-06-25's People

Contributors

janlin002 avatar

Watchers

 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.