Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

Creates a button that when pressed, changes the text-TypeScript, React

$
0
0

I am new in this language and i couldn't find a solution.this is my code:

{<a>Right now {order.status === 'full' ? 'x' : 'y'}</a>}

And I want to change the text to a button that when clicked will change the text of the button, and return to the previous text after another click, and so on

Thanks.


Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>