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...
There are basically 3 decisions for a dev implementing Unit Testing in JS. 1. Chosing a Framework 2. Chosing an assertion Library 3. Chosing a Helper Library 1.For Testing 2. Assertion Libraries: 1. Should 2. Chai 3. CoffeeScript 4. YUI Port 5. expect.js 6. assert.js 7. jsShould Underscore: MomentJS: Mocha: It is open source framework. started in Node Supports both BDD and TDD. Supports both Client and Server side testing. Supports Asynch testing
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