1 of 28

Slide Notes

DownloadGo Live

react.js Intro

Published on Nov 18, 2015

No Description

PRESENTATION OUTLINE

DEV O'CLOCK

REACT

react.js, that is

DISPLAYING DATA

Photo by kennymatic

STATIC

JUST USE HAML
Photo by DeeAshley

LIVE UPDATES

FORWARD DATA BINDING
Photo by djwtwo

"FORWARD DATA BINDING"

  • Render placeholders
  • Get new data
  • Update the placeholders
  • React does this...
  • But so does everything
Photo by kevin dooley

WHY USE REACT?

Photo by gacabo

Easy to grasp
Easy to build
Well thought out
Lightning fast

JSX

BASICALLY JUST HTML IN JS

...BUT WHY JSX?

OKAY, OKAY, YOU CAN USE RAW JS
Photo by Gn!pGnop

COMPONENTS

NESTABLE, COMPOSABLE... AND THEY'RE FUNCTIONS

DEMO

JSX SYNTAX, COMPONENT NESTING
Photo by Javier Volcan

PROPERTIES

THEIR BEAUTY AND POWER
Photo by John-Morgan

STATE

AND ITS MANY DANGERS

UPDATING

YOU JUST... RE-RENDER
Photo by nickwheeleroz

BUT THAT'S SLOW!

COUNTER-POINT: NUH-UH
Photo by sixpackshack

VIRTUAL DOM

Photo by kevin dooley

DEMO

SHOW HOW VIEWPORT EVENTS CAUSE RE-RENDER
Photo by snogglethorpe

INTERACTIVE DATA

THE MOTIVATION FOR BACKBONE, EMBER, ETC...
Photo by Documentally

TWO-WAY DATA BINDING

  • Model updates forms
  • Forms update model
  • Loop city
  • Man, this is not easy
Photo by danielito311

SO WHY REACT?

USE THE RIGHT TOOL FOR THE JOB
Photo by duda C.

WE ARE

AND HERE'S WHY
Photo by Marcus Vegas

REACT DOES WORK

CALLBACKS BEAT TWO-WAY BINDING

DEMO

SHOW API CALLBACKS IN USE
Photo by Peter E. Lee

SIMPLE

IT'S JUST A FEW CLASSES
Photo by SamuelJohn.de

UNINTRUSIVE

IT'S JUST A LIBRARY

QUESTIONS?

Photo by laffy4k