Giter Club home page Giter Club logo

jammming-app's People

Contributors

bizworld avatar

Stargazers

 avatar

Watchers

 avatar  avatar

jammming-app's Issues

Tracks not being passed through properly.

jammming

Is this not finished?

 render() {
    return (
      <div className="Track">
        <div className="Track-information">
          <h3>{/* track name will go here */}</h3>
          <p>{/* track artist will go here */} | {/* track album will go here */}</p>
        </div>

        {this.renderAction()}
      </div>
    );
  }
}

The h3 and p should be changed to

<h3>{this.props.track.name}</h3>
          <p>{this.props.track.artist} | {this.props.track.album}</p>

And it works on the searchResults after this change.

Summary

Needs improvement.

Unfortunately the project wasn't working properly. They are minor fixes.

It is in a working state now with all my fixes.

You got a lot down and I know you had a few questions in chat. If you want to discuss this further with the advisors on how to solve these errors better feel free to reach out.

jsonResponse written wrong

return jsonResponse.tracks.map(track => (

You have to double check the api. You were close here, I want to show you a snippet of the response

{
  "tracks" : {  <----- correct but
    "href" : "https://api.spotify.com/v1/search?query=Salzburg&type=track&market=US&offset=0&limit=20",
    "items" : [ {  <--- it is broken down into items
      "album" : {
        "album_type" : "single",
        "artists" : [ {
          "external_urls" : {
            "spotify" : "https://open.spotify.com/artist/5RPzPJCg4ER1LzQkorZ31p"
          },
          "href" : "https://api.spotify.com/v1/artists/5RPzPJCg4ER1LzQkorZ31p",
          "id" : "5RPzPJCg4ER1LzQkorZ31p",
          "name" : "Worakls",
          "type" : "artist",
          "uri" : "spotify:artist:5RPzPJCg4ER1LzQkorZ31p"
        } ],
    

so you need to write it as

return jsonResponse.tracks.items.map(track => (

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.