the following exception will be thrown:
TypeError: Cannot read property 'props' of null
I suppose the problem is that the GoogleMap component assumes that all the children are valid react components, so when one of the child is null (as in the example) the error is shown.
When we try to use conditional rendering like:
the following exception will be thrown:
TypeError: Cannot read property 'props' of null
I suppose the problem is that the GoogleMap component assumes that all the children are valid react components, so when one of the child is null (as in the example) the error is shown.