May you write me an example of the use of state in React Native?
system
kya aap mujhe riect deshi main rajya ke upyog kaa ek udhaaharan likh sakate hai?
user
neeche yucestate hook ke upyog ke madhyam se riect deshi main rajya ke upyog kaa ek udhaaharan he.ek usestate sirf ek naam rakhata he jabaki doosraa ek umr or naam rakhata he.donon ek batan ke press par badalte hai.

aayaat pratikriya, {usestate} 'pratikriya' se;
aayaat {stiloit, paath, drishy, batan} 'riect-deshi' se;

difolt difolt fnction ap () {
  const [naam, setName] = usestate ('shaun');
  const [vyakti, setaperson] = usestate ({naam: 'mario', aayu: 40});

  const clickhandler = () => {
    setName ('chun-li');
    setaperson ({naam: 'luigi', aayu: 45});
  };

  waapas karnaa (
    <dekhen style = {Styles.Container}>
      <paath> meraa naam {naam} </paath> he
      <paath> uskaa naam {person.name} he or uski umr {person.age} </text> he
      <dekhen style = {STYLELS.BUTTONCONTAINER}>
        <batan sheershak = 'apadet state' Onpress = {ClickHandler} />
      </drishy>
    </drishy>
  );
}

const style = stiloit.cret ({
  container: {
    flex: 1,
    becogroundcolar: '#FFF',
    sanrekhit: 'centre',
    JustifyContent: 'centre',
  },
  ButtonContainer: {
    margintop: 20,
  }
});
assistant
<|system|>
</s>
<|user|>
kya aap mujhe riect deshi main rajya ke upyog kaa ek udhaaharan likh sakate hai?</s>
<|assistant|>
neeche yucestate hook ke upyog ke madhyam se riect deshi main rajya ke upyog kaa ek udhaaharan he.ek usestate sirf ek naam rakhata he jabaki doosraa ek umr or naam rakhata he.donon ek batan ke press par badalte hai.

aayaat pratikriya, {usestate} 'pratikriya' se;
aayaat {stiloit, paath, drishy, batan} 'riect-deshi' se;

difolt difolt fnction ap () {
  const [naam, setName] = usestate ('shaun');
  const [vyakti, setaperson] = usestate ({naam: 'mario', aayu: 40});

  const clickhandler = () => {
    setName ('chun-li');
    setaperson ({naam: 'luigi', aayu: 45});
  };

  waapas karnaa (
    <dekhen style = {Styles.Container}>
      <paath> meraa naam {naam} </paath> he
      <paath> uskaa naam {person.name} he or uski umr {person.age} </text> he
      <dekhen style = {STYLELS.BUTTONCONTAINER}>
        <batan sheershak = 'apadet state' Onpress = {ClickHandler} />
      </drishy>
    </drishy>
  );
}

const style = stiloit.cret ({
  container: {
    flex: 1,
    becogroundcolar: '#FFF',
    sanrekhit: 'centre',
    JustifyContent: 'centre',
  },
  ButtonContainer: {
    margintop: 20,
  }
});</s>
