<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
@kangax created a new interesting quiz, this time devoted to ES6 (aka ES2015). I found this quiz very interesting and quite hard (made myself 3 mistakes on first pass).
Here we go with the explanations:
(function(x, f = () => x) {A quick guide on how to setup Node.js development environment.
nvm allows installing several versions of Node.js to the same system. Sometimes applications require a certain versions of Node.js to work. Having the flexibility of using specific versions can help.
| // connect() is a function that injects Redux-related props into your component. | |
| // You can inject data and callbacks that change that data by dispatching actions. | |
| function connect(mapStateToProps, mapDispatchToProps) { | |
| // It lets us inject component as the last step so people can use it as a decorator. | |
| // Generally you don't need to worry about it. | |
| return function (WrappedComponent) { | |
| // It returns a component | |
| return class extends React.Component { | |
| render() { | |
| return ( |
| /* | |
| Incredibly simple Node.js and Express application server for serving static assets. | |
| DON'T USE THIS IN PRODUCTION! | |
| It is meant for learning purposes only. This server is not optimized for performance, | |
| and is missing key features such as error pages, compression, and caching. | |
| For production, I recommend using an application framework that supports server-side rendering, | |
| such as Next.js. https://nextjs.org |
| /** | |
| * Event loop. | |
| * | |
| * Read details here: | |
| * http://dmitrysoshnikov.com/ecmascript/javascript-the-core-2nd-edition/#job | |
| * | |
| * by Dmitry Soshnikov <[email protected]> | |
| */ | |
| /** |