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

JSX is just Javascript

Justin Woo
November 18, 2014

JSX is just Javascript

Justin Woo

November 18, 2014
Tweet

More Decks by Justin Woo

Other Decks in Programming

Transcript

  1. About me Former student physicist, nanotech researcher Working with React

    for 9 months now Former Python, Java user Not a real Node.js user
  2. Agenda Look at JSX output Get everyone hyped up to

    write JS Walk through an example Demo “crazy” code Not present a FP seminar
  3. Verdict JSX is just JS ...with some small amount of

    magic ...which is fine ...and saves a lot of time ...don’t have to follow JSX transform changes ...lets designers commit directly to codebase
  4. So what if JSX is JS? Don’t need templates ({{#each}},

    ng-repeat) More JS that makes sense Less syntax to remember [‘a’, ‘b’, ‘c’].map(function () { … }) no more !g ng-repeat docs no more !g handlebars each docs
  5. Doing more in pieces All of your JSX doesn’t need

    to go in return() Build pieces out at a time Provide outlets for those pieces Go crazy
  6. Conclusions JSX is Javascript JS is fun JSX with JS

    is familiar Familiar is easy(-ier than unfamiliar)
  7. Thanks! Hope you weren’t bored to death Hope you learned

    something or were amused Talk to me through email or twitter: moomoowoo@gmail @jusrin00