Giter VIP home page Giter VIP logo

jamming-feature-request's People

Contributors

stylejy avatar

Watchers

 avatar  avatar

jamming-feature-request's Issues

Summary

Overall met expectations.

This is a great feature request.

A couple things I would suggest from this point on.

Work on autocomplete search since this is a common feature in a lot of web apps.

See what you can do to refine your code and make it more efficient. In the end this makes a better presentation for future employers.

Take a look at a React style guide, I prefer Airbnb but there are others. Your components should be dropped down to multiple lines. Below is my reformatting for your render section of your app.js as an example. Good luck.

render() {
    return (
      <div>
        <h1>
          Ja<span className="highlight">mmm</span>ing
        </h1>
        <div className="App">
          <h2 className="user" id="user">
            Hi! {this.getUserName()}
          </h2>
          <SearchBar
            loginStatus={this.loginStatus}
            searchSpotify={this.searchSpotify}
            login={this.login}
          />
          <div className="App-playlist">
            <SearchResults add={this.addToList} songs={this.state.songs} />
            <Playlist
              loginStatus={this.loginStatus}
              addedSongs={this.state.addedSongs}
              remove={this.removeFromAddedSongs}
              createPlaylist={this.createPlaylist}
            />
          </div>
        </div>
      </div>
    );
  }
}


Init Function

In react it is consider a better practice to use componentDidMount to trigger this function

https://reactjs.org/docs/react-component.html#componentdidmount

If you look at the constructor information about this section you can see your this.init can lead to side effects. For myself I can see this causing additional renders.

I would also think it might be cleaner to the init code to the Spotify.js file and then just call Spotify.init()

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.