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 […]
HTML5
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 […]
React JS TODO LIST
Todo App. A simple way to work with de dom. We will create a simple form with one text field and a submit button, using the method React.createClass, so let’s do it : We have two classes, one for create every task and other for refresh every task on the browser. We can show items […]
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 […]
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″> […]