Code Monkey home page Code Monkey logo

airport_chooser's Introduction

Airport chooser:

  • No external 3rd party component used, only REACT
  • The actual JSON is directly fetched through a GET call, the link used in the demo is from the below link. If some other json needs to be tested, the AirportChooser.js needs to be updated with the JSON
  • Run npm install and npm start to start the UI
  • Note this is barebones at the moment which changes just sticking to the below ask. If needed, some things that can definetly added are a Autocomplete search Input, ability to Filter, sort and other things, but im just implementing this as an initial version

Implement a React component "AirportChooser" which is a button used to select one of many airports. The button when clicked should show a dropdown with list of all available airports. Each airport should display its name, city/country, and airport code. Display a loading state in case list of airports is not ready initially. Ensure the component can effectively support a large number of airports (40,000+). Include CSS styles for the component as well as a usage example. Do not use any 3rd party components for this project, only React itself. The actual list of airports should not be hardcoded in the component, but uploaded from a file. This list of airports may be useful for testing: https://gist.github.com/tdreyno/4278655

Available Scripts

In the project directory, you can run:

npm install

Install all node dependencies

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

airport_chooser's People

Contributors

abharath309 avatar

Watchers

 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.