Skip to content

Instantly share code, notes, and snippets.

@elijahmanor
Last active July 7, 2019 22:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elijahmanor/cc736f1ea9ae6e4c79f4e1e2dc752a7d to your computer and use it in GitHub Desktop.
Save elijahmanor/cc736f1ea9ae6e4c79f4e1e2dc752a7d to your computer and use it in GitHub Desktop.
React Hooks: useTheForce

Start using React Hooks

Title

React Hooks: useTheForce

Getting Started with React and Hooks

Descriptions (unpublished notes)

Abstract

React is one of the top front-end libraries for building fast interactive web applications.

Historically if you wanted to add state to your React Component you needed to use a JavaScript class. If your component had no state, then you could have used a function component, but once it needed state you'd have to convert it to a class component.

Thankfully, there is a new feature called hooks that enable you to maintain state and side-effects to a function component.

In this talk, we will compare class components with Function components with hooks, we will show the benefits of using hooks, walk through some of the more common hooks, show how to make your own hooks, and more.

Some of the patterns to reuse logic with class based components aren't needed anymore, so we will talk about how that is done in a hooks world.

Bio

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment