Frontend Training

<date placeholder>

2019 edition

Who we are ๐ŸŽˆ

Patrick Iwanicki

Thomas Duffy

Charlie King

Alan Tirado

Agenda

104

  • No state ๐Ÿ™…โ€โ™€๏ธ
  • Local state ๐Ÿงฎ
  • Context ๐ŸŒŽ
  • MobX โ“‚๏ธ
  • mobx-state-tree ๐ŸŒณ

105

  • Jest ๐Ÿƒ
  • Mounting Components ๐ŸŽ
  • Enzyme ๐Ÿ”ฌ
  • React Testing Library ๐Ÿงช

What's missing?

  • <placeholder>

104

  • No state ๐Ÿ™…โ€โ™€๏ธ
  • Local state ๐Ÿงฎ
  • Context ๐ŸŒŽ
  • MobX โ“‚๏ธ
  • mobx-state-tree ๐ŸŒณ

No State

Local State

Context

MobX

Why use MobX?

What is it for?

Simple and Scalable State Management

  • Reactive
  • Automatically Derived State
  • React + MobX = โค๏ธ

React

Renders the UI

MobX

Synchronizesย  application state with React components

๐Ÿ”„

MobX keeps our application state up-to-date efficiently, only updating parts of it's virtual dependency graph when needed.

React then renders that state, also very efficiently.

Observables & autorun

mobx-state-tree

Questions?

105

  • Jest ๐Ÿƒ
  • Mounting Components ๐ŸŽ
  • Enzyme ๐Ÿ”ฌ
  • React Testing Library ๐Ÿงช

Jest

Mounting Components

Enzyme

React Testing Library

Questions?

Frontend Training 104/105

By Charles King

Frontend Training 104/105

2019

  • 526