Check out example codes for "conpare to null value in mysql stack overflow". It will help you in understanding the concepts better.

Code Example 1

IS NULL;           // can use this for comparing a value to null
IS NOT NULL;

Learn ReactJs, React Native from akashmittal.com