Questions tagged [controlled-component]

89 questions
2
votes
3 answers

react-native-material-textfield Doesn't work as a controlled input

I'm using "react-native-material-textfield" for text inputs. I have a View to edit user details it fetch values from api when mounting and set it to state. But after upgrading "react-native-material-textfield" to "0.16.1" that original first name…
JasonSteve
  • 37
  • 1
  • 6
2
votes
1 answer

props.names.map is not a function

I have a react component called App that contains 2 components: Form and Table. And both of them are controlled component. In the form, there is an input element and a button. The input element has an onChange attribute; whenever the value changes…
Eddie Lam
  • 579
  • 1
  • 5
  • 22
2
votes
3 answers

How to create Vuejs controlled input form?

I'm used to creating controlled components in react using state; however, I'm new to Vue and would like to learn how I could recreate my code from react into something Vue could use. I want the input fields values to be store in a piece of data so…
albert_anthony6
  • 594
  • 2
  • 9
  • 30
2
votes
1 answer

How to correctly update . It's real easy with a single select: const ExampleSelect = () => { const [value, setValue] = React.useState() return (