I Think, I Thought, I Thunk#407

What is Redux Thunk used for?

— By default, Redux’s actions are dispatched synchronously, which is a problem for any non-trivial app that needs to communicate with an external API or perform side effects. Redux also allows for middleware that sits between an action being dispatched and the action reaching the reducers.

What is the difference between React Native and React?

— React and React Native are two powerful technologies that are behind some of the most popular web and mobile applications in the world today. You’re probably not even aware, but you use at least one of the two every single day. So what’s the difference between React vs React Native?

What is React?

— React, or ReactJS is an open-source JavaScript library for building user interfaces (UI) specifically for single-page applications. React was first conceived by Jordan Walke, a Facebook software engineer back in 2012 — where the technology was developed internally before it was deployed on Facebook.com and later to Instagram.com.

What is React Native?

— React Native is the younger sibling of React. Following the glowing reception of React in 2013, Facebook began working on a cross-platform mobile framework to keep up with the tech giant’s growing mobile needs. In March 2015, Facebook announced that the technology was open and available on Github.

Are you familiar with AMD/require.js or commonjs? What can they do for you?

— RequireJS implements the AMD API (source).

// someModule.js
exports.doSomething = function() { return "foo"; };
//otherModule.js
var someModule = require('someModule'); // in the vein of node
exports.doSomethingElse = function() { return someModule.doSomething() + "bar"; };
define('module/id/string', ['module', 'dependency', 'array'], 
function(module, factory function) {
return ModuleContents;
});
  • RequireJS is an implementation of AMD, while at the same time trying to keep the spirit of CommonJS (mainly in the module identifiers).
define(function(require, exports, module) {
var someModule = require('someModule'); // in the vein of node
exports.doSomethingElse = function() { return someModule.doSomething() + "bar"; };
});

Explain your personal troubleshooting techniques. Include devtools and environments.

Troubleshooting for me usually consist of using console.log and the devtools console in Chrome. Keeping my code clear and organized to get useful errors (aka computer please tell me why you no work).

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store