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

Change Style of components programatically (quiz app)

$
0
0

I am making a Quiz App.

After user makes their choices, they press submit and wrong/right answers display.

If user answered everything right, nothing happens. Next question comes up. (This part works)

This is my current situation (not quite, but minimal working example):

https://codesandbox.io/s/sleepy-hellman-4nym1?file=/src/App.tsx

I would like to achieve this way of displaying wrong/correct answers:

see here

What is the best way to achieve something like this? I'm stuck and have no idea how to do this in React. I appreciate every kind of help

Right now, in my situation, if user answers question wrongly - all checkboxes reset.

I commented a lot in the code itself, it should be understandable


Viewing all articles
Browse latest Browse all 6287

Trending Articles



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