Answers for "onpress not working with usestate react native"

0

how to use hooks react

const App = () => {
const [students , setStudents] = useState([]);
  
  return (
// put in the jsx code here
  )
}
Posted by: Guest on April-26-2020
0

onpress not working with usestate react native

<View style={styles.container}>
      <Text>{outputText}</Text>
      <Button title="Change text" onPress={() => setoutputText('Open up App.js to start working on your app!')}></Button>
      {/* <StatusBar style="auto" /> */}
    </View>
Posted by: Guest on June-04-2021

Code answers related to "onpress not working with usestate react native"

Code answers related to "Javascript"

Browse Popular Code Answers by Language