Skip to content

Instantly share code, notes, and snippets.

View doylem's full-sized avatar

Matthew Doyle doylem

  • Envato
  • Melbourne
View GitHub Profile
@doylem
doylem / react-hooks-workshop.md
Last active September 2, 2019 05:03
React Hooks workshop

React Hooks Workshop

  • The what... "They let you use state and other React features without writing a class."
  • The why... less code, simpler to maintain, easier to reason about, faster more efficient component rendering via functional components. Also the death of context / scope and the lexical 'this'... no need for classes, What is a class in JS anyway? Syntatic sugar to give the illusion of OOP - meh.
  • The how... OK, lets do this.

https://reactjs.org/docs/hooks-overview.html

Setup: Codepen

Keybase proof

I hereby claim:

  • I am doylem on github.
  • I am doylem (https://keybase.io/doylem) on keybase.
  • I have a public key ASCXjAb1ldJzCHnex8kAiHBRza6GJ-w9TYRkXMKfieXwYwo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am doylem on github.
  • I am doylem (https://keybase.io/doylem) on keybase.
  • I have a public key ASCXjAb1ldJzCHnex8kAiHBRza6GJ-w9TYRkXMKfieXwYwo

To claim this, I am signing this object: