Upgrade to Pro — share decks privately, control downloads, hide ads and more …

React Hooks

Sponsored · SiteGround - Reliable hosting with speed, security, and support you can count on.

React Hooks

Avatar for Cheesecake Labs

Cheesecake Labs

May 08, 2019
Tweet

More Decks by Cheesecake Labs

Other Decks in Technology

Transcript

  1. Hooks allow you to use states and states methods without

    creating a class. You can also create your own Hooks and share between your components. Hooks??
  2. Why? - Use all React features without a class; -

    Reuse stateful logic between components; - Classes are still confusing people; - React wants to be relevant for more and more years; - You don’t need to rewrite all your code; - Opt-in and 100% backwards-compatible.
  3. h t t p s : / / r e

    a c t j s . o r g / d o c s / h o o k s - reference.html#additional-hooks https://reactjs.org/docs/hooks-faq.html
 
 https://github.com/rehooks/awesome-react- hooks
 
 https://medium.com/@dan_abramov/making- sense-of-react-hooks-fdbde8803889 Additional