---
title: "Discussion on \"Managing State with React Hooks\" | Hashnode"
description: "Discussion on \"Managing State with React Hooks\". Early last year React 16.8 was released, bringing with it the addition of hooks. This introduction of hooks gave developers the ability to take many of the useful features of React (such as Lifecycle Events, Context, and State) available in class com..."
url: "https://hashnode.com/posts/managing-state-with-react-hooks/5f29d4e7d7d55f162b5d9e0c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Managing State with React Hooks](https://sabinadams.hashnode.dev/managing-state-with-react-hooks?utm_source=hashnode&utm_medium=feed)

Early last year React 16.8 was released, bringing with it the addition of hooks. This introduction of hooks gave developers the ability to take many of the useful features of React (such as Lifecycle Events, Context, and State) available in class com...

Aug 4, 2020 · 9 min read · sabinadams.hashnode.dev  
Updated Aug 5, 2020  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#frontend-development](https://hashnode.com/tag/frontend-development)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#2articles1week](https://hashnode.com/tag/2articles1week)

## Written by

[Sabin Adams](https://hashnode.com/@SabinAdams)

@SabinAdams · California

  
[View profile](https://hashnode.com/@SabinAdams)

Site Reliability Engineer

## Responses 3

Markdown supported · ⌘↵ to post

[Bolaji Ayodeji](https://hashnode.com/@bolajiayodeji)

[Aug 6, 2020](https://hashnode.com/posts/managing-state-with-react-hooks/5f29d4e7d7d55f162b5d9e0c/comment/5f2bb664eb31e259cffbcaaa)

This is amazing, thanks for sharing!

[Francisco Quintero](https://hashnode.com/@cesc1989)

[Aug 5, 2020](https://hashnode.com/posts/managing-state-with-react-hooks/5f29d4e7d7d55f162b5d9e0c/comment/5f2b332b3dddda50802a8d8c)

Nicely explain. Now I do wonder if there's any use in preferring class based components over hooks. What do you think, [Sabin Adams](https://hashnode.com/@SabinAdams)?

[Sabin Adams](https://hashnode.com/@SabinAdams)

[Aug 5, 2020](https://hashnode.com/posts/managing-state-with-react-hooks/5f29d4e7d7d55f162b5d9e0c/comment/5f2b332b3dddda50802a8d8c#reply-5f2b430d1d274050a13a201c)

I believe this is really just a personal preference thing. Yeah, there are some potential performance boosts, one example referenced in the docs [here](https://reactjs.org/docs/hooks-faq.html#are-hooks-slow-because-of-creating-functions-in-render), but the React team themselves encourage people not to go rewriting class components to functions.

Personally, I prefer Function components for a few reasons:

1.  In my opinion, they are more readable and simple.
2.  Due to the 'stateless' nature of a function component _putting hooks aside for now_, they encourage good modular design patterns
3.  Custom Hooks allow a nice clean way to break out reusable functionality between components
4.  See the potential performance enhancements in the link above

[Edidiong Asikpo (Didi)](https://hashnode.com/@didicodes)

[Aug 4, 2020](https://hashnode.com/posts/managing-state-with-react-hooks/5f29d4e7d7d55f162b5d9e0c/comment/5f29dfaae180c5164cdecd6c)

Your cover image is just as fantastic as the article. Thanks for sharing [Sabin](https://hashnode.com/@SabinAdams).
