Check out example codes for "select all inputs that arent checkboxes". It will help you in understanding the concepts better.

Code Example 1

document.querySelectorAll('input:not([type="checkbox"])');

Learn ReactJs, React Native from akashmittal.com