N
N
nikmil2019-10-25 22:05:22
React
nikmil, 2019-10-25 22:05:22

How to check if input is pressed?

Hello, please tell me how to check if the input "radio" is pressed? To output true or false

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Boris the Animal, 2019-10-27
@nikmil

react.tips/radio-buttons-in-reactjs
On the Code snippet 11 page (although you still have to read the article).
*Updated
Here in the same article there is a link to the source code on github .
File with code on github .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question