Check out example codes for "google map Argument of type 'HTMLElement | null' is not assignable to parameter of type 'Element'". It will help you in understanding the concepts better.

Code Example 1

"strictNullChecks": false,

Learn ReactJs, React Native from akashmittal.com