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

react is a framework

react is a framework

flipkart react.js meetup 27th Jun '15.

threepointone

June 27, 2015
Tweet

More Decks by threepointone

Other Decks in Programming

Transcript

  1. <!doctype html> <html> <head> <style> @import “reset.css"; body{ font-family: helvetica,

    arial, san-serif; } #xyz{ font-size: 12px:} </style> </head> <body> <div id='xyz' onclick='alert("hello world!")' style='background-color:#ccc;'> My name is Sunil! </div> <script> document.getElementById('xyz').style.fontSize = '20px'; </script> </body> </html>
  2. - the declarative model is discarded immediately - templating languages

    destroy t/p/c structure - no first class compose strategy
  3. flashback: e4x var header = <div> <h1><a href="/">Vjeux</a></h1> <h2>French Web

    Developer</h2> </div>; http://blog.vjeux.com/2013/javascript/jsx-e4x-the-good-parts.html
  4. the old way var store = new Store({attr: 123}); store.get('attr')

    store.on('change', ::console.log) store.set('attr', 456); // ???
  5. - snapshot / rewind - record / replay - hot

    load / replay - debug savepoints
  6. react is all of these things! - first class components

    / trees - write naturally, and the framework optimizes - generic imperative -> declarative bridge - and about record / replay…