introduction to reactjs

11
Introduction to ReactJS

Upload: jaroslaw-jaryszew

Post on 15-Jul-2015

154 views

Category:

Software


1 download

TRANSCRIPT

Page 1: Introduction to ReactJS

Introduction to ReactJS

Page 2: Introduction to ReactJS

Introduction to ReactJS - agenda

• What’s the fuss about React

• Where should I start

• Some coding

• Q&A

Page 3: Introduction to ReactJS

ReactJS is Facebook’s

childMark Zuckerberg: Our

Biggest Mistake Was Betting Too Much On HTML5 -

September 2012.

This was related to poor performance at that time.

Page 4: Introduction to ReactJS

Features

• Virtual DOM

• JSX

• Server side rendering

Page 5: Introduction to ReactJS

Virtual dom - why React is so quick

• Direct dom manipulation is expensive and it’s possible to do unnecessary manipulations in transitional states

• React has it’s own tree and after state changes it calculates minimal and final DOM modification

• You may even choose not render some subtrees selectively (shouldComponentUpdate)

Page 6: Introduction to ReactJS

JSX - why new javascript flavour?

• JSX makes html native part of javascript

• For some mixing languages makes it controversial

• Until you realise that you want to separate concerns not technologies

• It is not a new idea (QML, MXML)

Page 7: Introduction to ReactJS

Getting started

• Pretty good resources from creators @ http://facebook.github.io/react/

• Really good community @ http://www.reddit.com/r/reactjs

• Several Yeoman generators

Page 8: Introduction to ReactJS

Wiring up• runtime - JSXTransformer

• grunt-react

• gulp-react

• webpack

• browserify

• …

Page 9: Introduction to ReactJS

Let’s code

Page 10: Introduction to ReactJS

Seamless• Swedish company with development moving

entirely to Łódź

• Currently developing SEQR - mobile payment platform. This year we are rolling out to many European countries and USA

• We are hiring: backend (fullstack) developers, QA engineers,UX, mobile developers, sysadmins

Page 11: Introduction to ReactJS

Q&A