Javascript 51
ReactJS state In ES6 flavor
In the last post we have defined a ReactJS component in ES6 way. In this demo, “We will learn to define ReactJS states in ES6 flavor”. In ES6 flavor we have to define the initial states of a component inside the constructor function. In the following code we have defined a ReactJS component named MyTextComponent.It […]
ReactJS Component in ES6 flavor
We can create ReactJS component using ES6 class concept. In this demo, “We will learn to create ReactJS component in ES6”. In ES6 a class can be defined using class keyword and can inherit another class using extend keyword. To define a ReactJS component in ES6 the component must be defined as a class and […]
Service Worker Getting started
Service worker is the new feature from browser which can enable browser to run a script file in the background out side of web page. We can check the service worker support by checking the navigator.serviceWorker existence. The process for getting a service worker is registering is to browser.We can register a service worker using […]
Developing Resizable DIV Using JavaScript
You might have seen the TEXTAREA element in HTML is resizable.We can drag in the bottom right corner of the text area to resize it. In this demo,”We will learn to develop a resizable DIV element, similar to TEXTAREA resizer”. We will creating a JavaScript widget which will take the HTML element and make it […]