gregorynimmo93 / jamming Goto Github PK
View Code? Open in Web Editor NEWJamming project for Code Academy React course
Jamming project for Code Academy React course
Removing the tracks from the search list and adding them back once the user removed them from their New Playlist, is a great idea! It made your application very easy to interact with from the user side. Great job!
Objective Section (4/4):
Background (4/4):
Technical Design (4/4):
Caveats (2/4):
Total: 14/16
We can take advantage of ES6's property/value shorthand. You can use this syntax whenever the key and value share the same name. It is considered better practice and your code will look cleaner.
search(term){
Spotify.search(term)
.then(searchResults => this.setState({
searchResults
}));
}
map
, find
, and filter
functions in your program, they make your functions to be written simply and not convoluted. As a future goal, try to find places where you can refactor your code. For example, you can save as variables many of the URLs used in Spotify.jsThe project was implemented successfully. Congratulations ππ
Great job usinglet
when you need to reassign the variable and const
when you don`t need to, throughout your program π
React Components can be declared both as classes and as functions. Functional components are simpler to define but they lack certain features currently available only to class components, and I suggest you use them unless you need state. You can find more info here!
const SearchResults = (props) => {
return(
<div className="SearchResults">
<h2>Results</h2>
<TrackList tracks={props.searchResults}
onAdd={props.onAdd}
isRemoval={false}/>
</div>
)
}
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.