---
title: "Discussion on \"How to build a React component that is both controlled and uncontrolled (with examples)\" | Hashnode"
description: "Discussion on \"How to build a React component that is both controlled and uncontrolled (with examples)\". When building a React component, the conventional wisdom is that it can be either controlled or uncontrolled. What if there is a way to get the best of the two worlds and create a component that supports both modes?\nControlled vs uncontrolled compone..."
url: "https://hashnode.com/posts/how-to-build-a-react-component-that-is-both-controlled-and-uncontrolled/62e7891d053e6bd578429380"
---

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

Discussion

# [How to build a React component that is both controlled and uncontrolled (with examples)](https://whereisthemouse.hashnode.dev/how-to-build-a-react-component-that-is-both-controlled-and-uncontrolled?utm_source=hashnode&utm_medium=feed)

When building a React component, the conventional wisdom is that it can be either controlled or uncontrolled. What if there is a way to get the best of the two worlds and create a component that supports both modes? Controlled vs uncontrolled compone...

Aug 1, 2022 · 5 min read · whereisthemouse.hashnode.dev  
Updated Aug 5, 2022  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#react-componets](https://hashnode.com/tag/react-componets)
-   [#tutorial](https://hashnode.com/tag/tutorial)

## Written by

[Iva Kop](https://hashnode.com/@IvaKop)

@IvaKop

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

Software developer | Content creator | ReactJS enthusiast

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
