---
title: "Discussion on \"Building Flexible Components with React Hooks\" | Hashnode"
description: "Discussion on \"Building Flexible Components with React Hooks\". React Hooks have landed in React v16.8.0 which makes me really excited. Apart from handling state and lifecycle inside functional components, they also allow us to build flexible components with ease.\nA flexible component is one which can be used in ..."
url: "https://hashnode.com/posts/building-flexible-components-with-react-hooks/5c92234e3e23ae9132d02f40"
---

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

Discussion

# [Building Flexible Components with React Hooks](https://hashnode.com/post/building-flexible-components-with-react-hooks?utm_source=hashnode&utm_medium=feed)

React Hooks have landed in React v16.8.0 which makes me really excited. Apart from handling state and lifecycle inside functional components, they also allow us to build flexible components with ease. A flexible component is one which can be used in ...

Mar 20, 2019 · hashnode.com  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Aditya Agarwal](https://hashnode.com/@dev_aditya)

@dev\_aditya

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

I'm a full stack developer currently working on React projects. I like to write tech blogs and speak about Web

## Responses 1

Markdown supported · ⌘↵ to post

[Lee](https://hashnode.com/@HeyLee)

[Mar 22, 2019](https://hashnode.com/posts/building-flexible-components-with-react-hooks/5c92234e3e23ae9132d02f40/comment/5c94faaff5a01b860845c018)

Where is the hooks?

[smallhorridlady](https://hashnode.com/@smallhorridlady)

[Mar 27, 2019](https://hashnode.com/posts/building-flexible-components-with-react-hooks/5c92234e3e23ae9132d02f40/comment/5c94faaff5a01b860845c018#reply-5c9b7f8f5826654510f35aaa)

useState and useContext are both hooks. As a rule hooks should always be prefaced with the word "use", which might help you identify them in the future. I think the purpose of this article wasn't to explain how hooks work but [reactjs.org/docs/hooks-intro.html](https://reactjs.org/docs/hooks-intro.html) and [usehooks.com](https://usehooks.com/) are both great intros to that!

[Aditya Agarwal](https://hashnode.com/@dev_aditya)

[Mar 30, 2019](https://hashnode.com/posts/building-flexible-components-with-react-hooks/5c92234e3e23ae9132d02f40/comment/5c94faaff5a01b860845c018#reply-5c9f0c3bf64a7c9a294561e1)

The section "Communication between compound components and more about React Hooks" is all about Hooks
