WHAT IS REACT: React is a Facebook creation which simply labels itself as being “a JavaScript library for building user interfaces”. It's an open-source project which, to date, has raked in over 74,000 stars on GitHub. Why React? Flexibility: It is a library not a framework like Ember or Angular. Hence this makes react flexible. React is: Declarative : you only need to design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes. Component-based: you create your React-powered apps by assembling a number of encapsulated components, each managing its own state. Learn Once, Write Anywhere: React is not a full-blown framework; it's just a library for rendering views Getting Started with Environment: Prerequisites are Node and NPM installed on system History: Invented in 2011 In 2012 used by Instagram. 2013, open sourced 2015 - React Native released 2016 - React...
Package managers available: 1. CPAN 2. GoDoc 3. Maven Central 4. npm (node) 5. nuget (.NET) 6. Packagist (PHP) 7. PyPI 8. Rubygems.org Electron or Nw.js Electron enables you to create desktop applications with pure JavaScript by providing a runtime with rich native (operating system) APIs. You could see it as a variant of the Node.js runtime that is focused on desktop applications instead of web servers. This doesn't mean Electron is a JavaScript binding to graphical user interface (GUI) libraries. Instead, Electron uses web pages as its GUI, so you could also see it as a minimal Chromium browser, controlled by JavaScript. EmberJs Ember .js is an open-source JavaScript web framework, based on the Model–view–viewmodel (MVVM) pattern. It allows developers to create scalable single-page web applications by incorporating common idioms and best practices into the framework. Starter kit of JS: 1. Package Management 2. Bundling 3. Minification 4. Sourcemaps ...
You can create anonymous functions, which are functions created using the function() { ... } syntax. They are not given names, but they can be assigned to variables. Here is an Example of an anonymous function: 6 CHAPTER 1 ¡ EXPRESSIVE JAVASCRIPT /* An anonymous function, executed immediately. */ (function() { var foo = 10; var bar = 2; alert(foo * bar); })();
Comments
Post a Comment