GithubHelp home page GithubHelp logo

search-component's Introduction

This project was bootstrapped with Create React App.

How to Run Component

Folder Structure

My file/folder structure is as follows:

search-components/
  README.md
  node_modules/
  package.json
  public/
    index.html
    favicon.ico
  src/
    /components
      Album.js
      App.js
    /css
      App.css
    /images
      ITunes_OS_X.svg.png
      logo.svg      
    App.test.js
    index.css
    index.js
    

Download Respository

In the command line of your terminal, copy the following string:

git clone https://github.com/candacerogue/search-component.git
cd search-component
npm start

Available Scripts

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.

notes

I was only receiving 2 albums from the provided API (via the browser and Postman). Here are some improvements that could be made:

Styling Improvements: -Making the displayed albums into a grid using Material UI (so the list of albums display horizontally)

Functional Improvements: -I might have changed the visual library used for the search element. The AutoComplete component from the UI library was not handling the new request as expected and researched known issues with this specific property and callback use.

Overall Improvements: -A bit verbose in some areas of the code. Given more time, I could have used only one map to access all the information needed for the state and maybe abstracted the AutoComplete component into a separate js file for readability.

Original Challenge Link: https://jsfiddle.net/mpatel369/1epbdbj4/

search-component's People

Watchers

James Cloos 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.