3 ms·
Sorry for the late reply. You can change state without all the annoying purely functional programming stuff ([... previousState, newValue]). Just change it. Y
by Diesel555 6y ago
Sorry for the late reply.
You can change state without all the annoying purely functional programming stuff ([... previousState, newValue]). Just change it.
You can change a prop passed in and even pass a new value up to the parent. So you know the pass a function down so the child can change a value in the parent? Just pass the variable you want changed down with @binding.