I want to make a reusable component including between other things a TextField, like
@Composable
fun ReusableFormField(textFieldValue: TextFieldValue){
--label stuff here--
TextField(value = textFieldValue, onValueChange = {
textFieldValue = it)
})
--helper stuff here
}
But I can't find a way to assign the textFieldValue to a wrapping component as you cannot pass a variable by reference with something like ref or out in the parameters.