This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { applyMiddleware, createStore } = Redux; | |
const createSagaMiddleware = ReduxSaga.default; | |
const { put, call } = ReduxSaga.effects; | |
const { takeLatest } = ReduxSaga; | |
const { connect, Provider } = ReactRedux; | |
// GitHub API | |
const gitHubApi = (username) => { | |
return fetch(`https://api.github.com/users/${username}`) | |
.then(response => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// It's worthy of note that Javascript is not a class-oriented language. It's strength is in its native nature. | |
// Basically, Javascript is a prototypal language and thus uses prototypal inheritance for its operations. | |
// The example below is a tip of how the prototypal nature of javascript can be utilized | |
// Implementing the use of 'arguments' object to pass arguments to a funcion | |
function foo() { | |
bar.apply(null, arguments) | |
} | |
function bar(){ |
NewerOlder