Giter Site home page Giter Site logo

jammming's People

Contributors

kstover avatar

Watchers

 avatar  avatar

jammming's Issues

Summary - Exceeds Expectations

You did a really good job on your project. Looking at your code is seems like the majority is 100% yours and nothing from the answer key. Great job adding extra functionality like searching on enter being hit. I really liked your documentation throughout the entire project. You show clear understanding of React fundamentals like passing props and rendering children. All in all, awesome work!

Spotify.js

Awesome job on your Spotify.js file. I like that you used jsDocs to describe what the code was doing. It looks very professional!

State Mutation

In you App.js file you mutate state:

// updatePlaylist fn

playlist = this.state.playlist;
playlist.push( item );
this.setState( { playlist: playlist } );

playlist is a direct reference and not a new copy of this.state.playlist. Anything done to playlist will happen to this.state.playlist. Therefore you must do something like:

const playlist = [ ...this.state.playlist ];
const playlist = this.state.playlist.slice();

Either one of these will return a NEW array. When you use the array method filter that returns a new array so that line is correct (line 68).

Documentation / Comments

Great job adding all of the comments/docs to your code. It looks really good and gives the reader an explanation of what everything does. Very clean!

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.