Javascript

ES6 Class

Classes are one of the major features of ES6. In fact it wraps prototype based Object Oriented design and provides the developer a better and easier method to write code. It also helps developers who

Javascript

ES6 Arrow Functions

In ES6, a function can be written in a new way using =>. x/10; myFunc(50); // gives 5 --> This is useful in writing nameless handler functions. It has the same context as the code from which it i

TypeScript

TypeScript - Getting Started Guide

UPDATE : Based on TypeScript 2.1.4 TypeScript is the superset of ECMA2015 (ES6), which is the superset of ES5. TypeScript is transcompiled to Javascript before loading in web page. InstallationTypeS

React

Working with AJAX in React #1

This example shows how data cat be fetched from an api and displayed in a Component. AJAX UtilityTo fetch data from api a utility library is required. In this example axios is used. > npm install a

React

Rendering UI with Data in React Component #1

This example shows how data in json format can be passed to a react component. Indexindex.html --> index.js , document.getElementById('root') ); --> App (React Component)App.js {/* show

React

Rendering UI with Data in React Component #2

This example shows how data can be displayed in UI using React. This example has 3 parts Index index.html index.js App (React Component) App.js App.css Comment (React Component) Comment.js Commen

React

Getting Started with React

(updated) What is React ?React is a Javascript Library to build HTML User Interfaces. To summarize, React handles only the view layer So not like Ember, Angular or Backbone But it is not just an HT

Javascript

Recursively using a partial in Handlebars

The examples below show how a partial can be called in itself. It is useful in creating a dynamic nested menu. Frameworks:jQuery 1.9.1, Handlebars 4.0.6(update) IMPORTANT: As it is recursion, m

Javascript

Custom Handlebars Helper

The example below shows how custom helpers can be defined for Handlebars. Frameworks:jQuery 1.9.1, Handlebars 4.0.6(update)