Check out example codes for "'&&' within '||'". It will help you in understanding the concepts better.

Code Example 1

//Do this when get error: '&&' within '||'
if ((A && B) || (C && D))

Learn ReactJs, React Native from akashmittal.com