I am trying to build a component that can either be used controlled or uncontrolled. Similar to how TextField in MaterialUI or Input in ChakraUI. So the component works with or without the value
props. What is the best way to build this kind of component?
Asked
Active
Viewed 133 times
2

henrycity
- 61
- 1
- 1
- 5