jillichrome / jammming Goto Github PK
View Code? Open in Web Editor NEWCreates playlists from Spotify searches that you can save to your account
Creates playlists from Spotify searches that you can save to your account
Alternatively, you could use .concat()
which will return an array with the track appended:
this.setState({ playlistTracks: this.state.playlistTracks.concat(track) });
https://github.com/jillichrome/jammming/blob/master/src/components/App/App.js#L27-L28
You could use the value
attribute instead of defaultValue
to reset the playlist name instead of changing it using document.getElementById()
.
https://github.com/jillichrome/jammming/blob/master/src/components/PlayList/PlayList.js#L19
https://github.com/jillichrome/jammming/blob/master/src/components/App/App.js#L50
You could actually omit the return
keyword here.
https://github.com/jillichrome/jammming/blob/master/src/components/App/App.js#L45
https://github.com/jillichrome/jammming/blob/master/src/components/App/App.js#L57
Great job with the API requests and including error handling!
Alternatively, you could simplify the linked line as:
<a className="Track-action" onClick={this.props.isRemoval ? this.removeTrack : this.addTrack}>{this.props.isRemoval ? '-' : '+'}</a>
https://github.com/jillichrome/jammming/blob/master/src/components/Track/Track.js#L36
(Exceeds Expectations)
Well done on this project! In particular, great job with the requests to the Spotify API and chaining the .then() methods. It looks like you have a good understanding of the overall structure of the project as well as each individual components.
As a further challenge, continue to explore the Spotify API and see if you're able to add some new features to this app. And as you expand your project, look for ways to try and simplify your code and reduce lines (#5). Happy coding!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.