ReactJS & NodeJS Comments App.

In this case using NodeJS and ReactJS at the same project. The React has server example  for NodeJS, Ruby, Python, PHP. We can clone de repository and after install all dependencies. For that first : git clone https://github.com/reactjs/react–tutorial.git comments npm install Run the App : npm start The file server.js is used express module in order to… Seguir leyendo ReactJS & NodeJS Comments App.

React PropTypes

When you create a class with React, using the createClass method. We can use some properties and methods in order to manage behavior of our class. for this let’s use points : propTypes and getDefaultProps. propTypes : We can set the properties of the class. getDefaultProps: We can set default values. So we can set the components… Seguir leyendo React PropTypes

4 JavaScript Design Patterns You Should Know

Every developer strives to write maintainable, readable, and reusable code. Code structuring becomes more important as applications become larger. Design patterns prove crucial to solving this challenge – providing an organization structure for common issues in a particular circumstance. JavaScript web developers frequently interact with design patterns, even unknowingly, when creating applications. Although there is… Seguir leyendo 4 JavaScript Design Patterns You Should Know

Setting up Working Environment for Backbone.js

BackboneJS has a hard dependency on Underscore.js and a soft dependency on Jquery. So, the following components are required to start working with BackboneJS: Backbone.js Underscore.js (>=1.4.3) Jquery (>=1.7.0) So, after having all these prerequisites we will test if it has been set up properly by writing our first BackboneJSDemo.html file such as below: <html> <head> <meta charset=”utf-8″>… Seguir leyendo Setting up Working Environment for Backbone.js