2

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?

henrycity
  • 61
  • 1
  • 1
  • 5

0 Answers0