In the example code if previewVariables is not present false is supplied. However, the PropType given is string. Shouldn't the default value instead be an empty string, '', not false?
I ask because this is generating a warning,
Failed prop type: Invalid prop `previewVariables` of type `boolean` supplied to `GoogleTagManager`, expected `string`.
In the example code if previewVariables is not present
false
is supplied. However, the PropType given is string. Shouldn't the default value instead be an empty string,''
, notfalse
?I ask because this is generating a warning,