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
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
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
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
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
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
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
The example below shows how a partial element can be created using handlebars Frameworks:jQuery 1.9.1, Handlebars 4.0.6(update)
(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
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
The example below shows how custom helpers can be defined for Handlebars. Frameworks:jQuery 1.9.1, Handlebars 4.0.6(update)