Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Tjejer Kodar Intro to JavaScript and React

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers. →

Tjejer Kodar Intro to JavaScript and React

Avatar for Damien Timewell

Damien Timewell

October 24, 2015

Other Decks in Programming

Transcript

  1. 1991 1993 1995 1996 1998 2000 2005 2008 HTML 1.0

    First Browser “Mosaic” Browser JavaScript 1.0 Internet Explorer CSS 1.0 HTML 4.0 JavaScript 2.0 AJAX JS Frameworks HTML 5 Node.js
  2. CSS

  3. Frameworks jQuery MooTools Sprout Sprout React Prototype Cappuccino JavaScriptMVC BackboneJS

    Spine Angular ExtJS Knockout PureMVC Dojo Polymer Brick NuclearJS
  4. /* The fruit variable holds the name of the current

    fruit. */ var fruit = "ananas"; // But it's really a pineapple Comments
  5. var isSour = true; if (isSour) { // A sour

    fruit, possibly a lemon } else { // A non-sour fruit }
  6. this var fruit = { name: "Plum", squash: function() {

    return this.name + " juice"; } }; fruit.squash();
  7. A React Component var Product = React.createClass({ render: function() {

    return ( <div> <img src={this.props.image}/> <strong>{this.props.name}</strong> <a href="">ADD TO BASKET</a> </div> ); } });
  8. THE PLAN: Build a Todo app where you can: •

    See your completed and uncompleted todo items. • Create a new item. • Mark an item as complete. • Remove an item. • Save items in the browser’s localStorage.